
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 分
請在儲存庫或註冊中心條目中宣告授權條款。