
Gsep Mcp
io.github.gsepcore由 GitHub 账号 gsepcore 发布v1.0.0更新于 Oct 24, 2026
AI agent security via MCP: C3 firewall, C4 immune system, C5 action guard, self-evolving prompts.
概览
本地 MCP 服务器,为智能体的 LLM 调用加上提示注入、输出与危险操作防火墙,并支持自我进化提示词。
- 可以做什么
- 运行受保护的对话流程:扫描输入、调用 LLM、检查回复并记录适应度
- 扫描文本中的提示注入模式,检查 LLM 回复是否被操纵或出现角色混淆
- 扫描待执行的命令与工具调用,拦截递归删除、删库等破坏性操作
- 在 LLM 调用和工具执行前后提供钩子,净化输入并把工具输出视为不可信内容
- 查看基因组健康度、适应度与漂移情况,并记录用户满意度反馈以驱动提示词进化
- 适用场景
- 当智能体会执行 shell、文件系统或数据库操作,需要一层拦截危险命令和提示注入的防护时适合使用。也适合希望在现有 LLM 提供商之外获得按用户个性化提示和漂移追踪的场景。
- 运行要求
- 通过 npx 从 npm 包 @gsep/mcp 在本地以 stdio(或 HTTP 模式)运行。需要一个模型后端:ANTHROPIC_API_KEY 或 OPENAI_API_KEY,或用于本地模型的 OLLAMA_HOST。可选配置包括 GSEP_PRESET 以及 HTTP 主机、端口和鉴权相关变量。基因组数据默认保存在本地路径。
安装
在 SourceWeft 中
- 打开 控制台中的 Gsep Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
GSEP-MCP — AI Agent Security via Model Context Protocol
[npm version] [License] [MCP Registry] [Powered by GSEP]
The only MCP server that protects your AI agent instead of just extending it.
"me encanta saber que no borrará nada de mi pc" — First GSEP user, unprompted
At a Glance
What is GSEP-MCP?
There are 9,400+ MCP servers. All of them give your agent new tools — Notion, GitHub, Slack, databases.
GSEP-MCP is different. It gives your agent security, safety, and self-improvement — without writing a single line of code.
Works with: Claude Desktop, Cursor, Windsurf, Cline, Continue, n8n, Make, any MCP client.
Integrations
GSEP-MCP supports two transports: stdio (for desktop apps and IDEs) and HTTP (for servers, backends, and automation platforms). Pick the one that matches your environment.
stdio Transport (Desktop / IDE)
stdio is the simplest transport. The MCP client launches GSEP-MCP as a subprocess and communicates via stdin/stdout. No port, no server, no network.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
Restart Claude Desktop. Your agent is now protected.
Cursor
Add to .cursor/mcp.json in your project (or global ~/.cursor/mcp.json):
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
Cline / Continue / Any MCP-compatible IDE
Add the same config block to your IDE's MCP settings file. GSEP-MCP is compatible with any client that implements the MCP protocol.
OpenClaw / Genome
With Ollama (local models — no API key needed)
HTTP Transport (Servers / Backends / Automation)
HTTP mode runs GSEP-MCP as a standalone server. Use this when your agent lives in a backend, a cloud service, or an automation platform.
Start the server:
Session model (v1.0.3+): Send
initializefirst — the server returns anmcp-session-idheader. Include that header in all subsequent requests. Do not open a new connection per call.
OpenAI-Compatible Gateway
Gateway Mode lets existing OpenAI-compatible apps adopt GSEP by changing their baseURL.
The server uses the LLM provider configured in its environment, then wraps every request in
GSEP protection and evolution.
Supported endpoints:
GET /v1/modelsPOST /v1/chat/completionsPOST /v1/responses
Streaming is intentionally rejected for now; use non-streaming calls until the streaming safety pipeline is implemented.
n8n
- Start GSEP-MCP server (locally or on Railway/Render)
- In your n8n workflow add an HTTP Request node:
- Method: POST
- URL:
http://your-gsep-server:3100/mcp - Body (JSON):
- Header:
mcp-session-id: {{ $json.sessionId }}
For n8n: initialize once at workflow start, store the
mcp-session-id, and reuse it across nodes.
Make (Integromat)
Use the HTTP → Make a request module pointing to http://your-gsep-server:3100/mcp with the same JSON-RPC 2.0 payload above.
Python (Django / FastAPI / Celery)
Install the MCP Python SDK:
In a Celery task:
Node.js / TypeScript Backend
Deploy on Railway
- Create a new Railway service
- Set start command:
npx @gsep/mcp --http - Set environment variables:
- Your Django/Celery service connects via Railway internal networking:
Generic HTTP (any language)
Any HTTP client that supports JSON-RPC 2.0 works. The pattern is always:
How It Works
Every message through your agent flows through the GSEP pipeline:
Zero code changes to your agent. GSEP-MCP sits between your MCP client and the LLM.
Six-Layer Chromosome Model
MCP Tools Reference
gsep_chat
Full pipeline — C3 → evolved LLM → C4 → C5 → fitness → evolution. Use this as your primary chat tool. Returns the protected response + GSEP status.
gsep_scan_input
C3 Content Firewall — scan any text before sending to your LLM.
gsep_scan_output
C4 Behavioral Immune System — verify your LLM's response wasn't manipulated.
gsep_scan_actions
C5 Action Firewall — catch dangerous commands before they run.
gsep_before_llm
Middleware pre-hook — sanitize input and assemble the protected prompt before an external agent calls its own LLM.
gsep_after_llm
Middleware post-hook — verify an external LLM response before showing it to users or tools.
gsep_before_tool
Tool execution pre-hook — block dangerous shell, database, filesystem, or API actions before execution.
gsep_after_tool
Tool result post-hook — treat tool output as untrusted external content before reinjecting it into the agent.
gsep_get_status
Genome health, fitness scores, drift detection, evolution generation.
gsep_record_feedback
Signal satisfaction/dissatisfaction to drive evolution.
GSEP-MCP vs Alternatives
Environment Variables
Powered by GSEP Core
GSEP-MCP is built on @gsep/core — the open-source genomic evolution engine for AI agents. All security and evolution logic runs inside the core engine. GSEP-MCP is the MCP protocol layer on top.
If you are a developer and want deeper integration, use @gsep/core directly in your TypeScript/JavaScript project.
Intellectual Property
Built on GSEP — Genomic Self-Evolving Prompts. Patent pending (US, EU, PCT).
Contact
- Website: gsepcore.com
- Discord: discord.gg/7rtUa6aU
- Email: [email protected]
- GSEP Core: github.com/gsepcore/gsep
GSEP-MCP — Your agent, but protected.
MIT License — © 2026 Luis Alfredo Velasquez Duran
Changelog
v1.0.9
- feat(resources): Add session TTL, max session limits, periodic cleanup, genome TTL/LRU cache, and resource metrics.
- fix(resources): Disable dashboard auto-start for MCP-created genomes to avoid accidental local port usage.
v1.0.8
- feat(gateway): Add OpenAI-compatible Gateway Mode with
/v1/models,/v1/chat/completions, and/v1/responses. - feat(gateway): Add gateway auth controls and explicit non-streaming contract for the first gateway release.
v1.0.7
- feat(middleware): Add universal middleware hooks:
gsep_before_llm,gsep_after_llm,gsep_before_tool, andgsep_after_tool. - fix(docker): Build Docker image from the current repository source instead of installing a previously published npm version.
v1.0.3
- fix(http): Persist session transport across requests — fixes tool call timeout in HTTP mode. Previously a new
StreamableHTTPServerTransportwas created per request, destroying session state. Now uses a sessions Map keyed bymcp-session-id.
v1.0.2
- feat: Initial public release — 6 MCP tools, stdio + HTTP transports, C3/C4/C5 protection, self-evolving prompts.
- feat: Published to official MCP Registry (
io.github.gsepcore/gsep-mcp).
来源:README.md,提交 4db1c37
工具
0版本历史
1- v1.0.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。