
Universal Connector Mcp
io.github.TeodorMCP由 GitHub 账号 TeodorMCP 发布v0.2.0更新于 Oct 24, 2026
Security-first MCP server that connects any OpenAPI, GraphQL, gRPC or SOAP API to AI agents.
概览
让助手从规范加载任意 OpenAPI、GraphQL、gRPC 或 SOAP API,并通过少量元工具调用其操作。
- 可以做什么
- 该服务器不为每个接口暴露一个工具,而是把 API 规范归一化为操作注册表,助手用 search_catalog、load_api、search_operations 和 get_operation 浏览,再用 execute 调用。它支持链式与并行执行、按字段提取以缩小响应,并对只读调用做短时缓存。内置目录包含精选列表以及 APIs.guru 的公共规范目录。
- 适用场景
- 当助手需要访问许多不同的 HTTP 或 RPC API,又不想为每个服务单独安装 MCP 服务器时适用;也适合大型 API 否则会用数百个工具挤占上下文窗口的情况。还适合在一次调用中查询多个 API 并合并结果的多步工作流。
- 运行要求
- 通过 stdio 在本地运行,通常用 uvx 从 PyPI 包 universal-connector-mcp 启动;GraphQL、gRPC 和 SOAP 支持需要相应扩展。凭据按约定从环境变量读取,例如 GITHUB_TOKEN 或 _API_KEY。可选设置包括 UCMCP_ALLOWED_HOSTS、UCMCP_APIS_CONFIG、UCMCP_BLOCK_PRIVATE_IPS 和 UCMCP_CACHE_TTL。需要能访问目标 API 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Universal Connector Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Universal API Connector MCP
[Universal API Connector - Any API. One MCP server.]
Any API. One MCP server.
Stop installing a new MCP server for every service: point this one at any OpenAPI/Swagger, GraphQL,
gRPC or SOAP spec - or pick one from the built-in catalog of 2500+ public APIs - and your AI agent
can call it. Securely, in fewer steps, with fewer tokens.
[CI] [PyPI] [Python] [License: MIT]
Installation · Meta-tools · API catalog · Examples · Configuration · Security
[Live demo: the agent discovers, loads and calls an API in a single session]
Why another one?
Most "universal API" MCP servers only speak REST/OpenAPI. This project is built around three differentiators:
- Truly universal - a normalized
Operationmodel with pluggable spec adapters (OpenAPI, GraphQL, gRPC, SOAP). Tools and executors never care which protocol produced an operation. - Security-first / local-first - a direct response to supply-chain attacks like the AgentBaiting / FakeGit campaign. Outbound requests are restricted to an allowlist, secrets never touch logs, responses are size-capped, and every call is audit-logged. No arbitrary code execution, no binary downloads, no telemetry.
- Built for context efficiency - field-level response filtering, chained and parallel execution, and response caching mean whole workflows fit in one tool call and responses stay small.
How it works
[One connector, every protocol]
The agent explores APIs like a filesystem instead of loading hundreds of tools at once (which would blow up the context window on large APIs like Stripe). It searches for operations, inspects the ones it needs, then executes them.
Architecture (click to expand)
Meta-tools
Why fewer steps (and fewer tokens)
Where a per-API MCP server needs one tool round-trip per call - each returning a full JSON payload into the agent's context - this server collapses whole workflows:
extract-execute(..., extract=["items.*.name", "total_count"])returns just those fields instead of a multi-kilobyte response.*fans out over arrays.- Chaining -
execute_chainedpipes step results into later params via${save_as.path}references: one tool call instead of N. - Parallel groups - a nested list of steps runs concurrently, so "query three APIs and combine" is still one call:
- Response cache - successful GET/query results are cached for
UCMCP_CACHE_TTLseconds (default 60), so repeated lookups are instant and free; passfresh: trueto bypass. Successful mutations invalidate that API's cached reads.
Built-in API catalog
You don't need to hunt for spec URLs. search_catalog searches two sources:
- A curated list of verified free/popular APIs: GitHub, GitLab, Stripe, OpenAI, Wikipedia, Open-Meteo (weather, no key), a countries GraphQL API, httpbin and the Swagger Petstore. Entries carry working spec URLs, base-URL overrides and auth hints (e.g. "optional GITHUB_TOKEN").
- The APIs.guru directory - 2500+ community-indexed OpenAPI specs (Google, AWS, Microsoft, Twilio, NASA, ...), fetched once per session and searched locally.
The catalog is discovery-only: it returns spec URLs, never loads or executes anything itself, so the security guard still applies to everything you load from it.
Installation
The server runs in any MCP host via uvx - no manual install needed, the package is fetched from PyPI automatically (add [all] for GraphQL/gRPC/SOAP support):
From source (development): pip install -e ".[all,dev]" and use "command": "universal-connector-mcp" instead. Extras: graphql, grpc, soap, keyring, all, dev; the core install supports OpenAPI/REST only.
Cursor
One click via the badge above, or add the JSON block to .cursor/mcp.json in your project (shared with your team) or ~/.cursor/mcp.json (personal, all projects). See examples/mcp.json for a full config with credentials.
Claude Desktop
Add the same mcpServers block to claude_desktop_config.json (Settings > Developer > Edit Config).
Claude Code
VS Code (Copilot)
Add the server under "servers" in .vscode/mcp.json:
Windsurf / Cline / others
All major MCP hosts accept the same mcpServers block shown above in their respective config files (~/.codeium/windsurf/mcp_config.json, Cline's MCP settings, etc.).
AI agents installing this server for a user: follow llms-install.md.
Preloading APIs
Point UCMCP_APIS_CONFIG at a YAML file to auto-load APIs at startup - see examples/apis.example.yaml.
Managing APIs from chat
You never edit config files to manage APIs - just tell your agent:
- "Connect the Stripe API" - the agent finds it in the catalog and loads it.
- "What APIs are connected?" -
list_apisshows them. - "Forget GitHub" -
unload_apiremoves it (and from the remembered state).
When an API needs credentials, load_api tells the agent exactly which environment variable to set (e.g. STRIPE_API_KEY), whether it is already configured, and the agent relays copy-pasteable instructions - you add the variable to the env block of your MCP config and restart. Secrets are never typed into the chat.
Session persistence
The server remembers which APIs you loaded (their spec locations - never credentials or response data) in UCMCP_STATE_FILE and restores them automatically on the next start, so the agent can pick up right where it left off. Set UCMCP_STATE_FILE=off to disable.
Supported protocols
Each loaded operation gets an id namespaced as <api>.<operation> (e.g. github.repos_get).
Example session
More walkthroughs (weather, GitHub with auth, GraphQL, parallel multi-API workflows, internal APIs): docs/EXAMPLES.md
GraphQL with field selection:
Chaining (feed one result into the next; wrap steps in a nested list to run them in parallel):
Configuration
All settings are environment variables prefixed with UCMCP_:
Credentials are looked up by convention from <API_NAME>_TOKEN, <API_NAME>_API_KEY, <API_NAME>_CLIENT_ID / <API_NAME>_CLIENT_SECRET (OAuth2 client credentials), etc.
Development
The test suite (60+ tests) and lint run in CI on Ubuntu and Windows with Python 3.10 and 3.12 on every push (.github/workflows/ci.yml); tagging v* builds and publishes to PyPI via trusted publishing (.github/workflows/release.yml).
Contributions welcome - see CONTRIBUTING.md. Security reports go through private reporting.
Releases are automated: tagging v* publishes to PyPI via trusted publishing (see docs/RELEASING.md).
Security model
- Outbound allowlist - by default only hosts of explicitly loaded specs are reachable. Extend/limit via
UCMCP_ALLOWED_HOSTS/UCMCP_DENIED_HOSTS. - SSRF protection - requests that resolve to private, loopback, link-local, reserved or cloud-metadata addresses are blocked (including spec fetches, GraphQL introspection and SOAP imports). Every redirect hop is re-validated. Reaching an internal address requires an explicit
UCMCP_ALLOWED_HOSTSentry. - Secret handling - credentials come from environment variables or the OS keyring, are injected only at request time, and are redacted from audit logs and errors.
- Response caps - responses are truncated to a configurable byte limit to protect the context window.
- Audit log - method, host, path and status of every outbound call (never secrets or bodies) are recorded.
License
MIT
来源:README.md,提交 78753e3
工具
0版本历史
1- v0.2.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分