
Mcp Api Connect
io.github.bvenkata由 GitHub 帳號 bvenkata 發布v0.1.0更新於 Oct 25, 2026
Protocol- & auth-agnostic API connector: SOAP/REST behind any auth, config-driven. Lib/API/MCP.
概覽
一個設定驅動的連接器引擎,讓助理透過可重複使用或一次性的連接器規格呼叫 REST 或 SOAP API,並支援多種驗證方式。
- 可以做什麼
- 用內嵌規格(URL、協定、驗證、請求與回應結構)一次性呼叫任意 REST 或 SOAP 服務。註冊、列出、依名稱呼叫和刪除可重複使用的具名連接器。支援 API key、Basic、Bearer 和 OAuth2 用戶端憑證驗證,OAuth2 權杖會自動取得並快取。透過欄位對應或 Jinja2 請求主體範本以宣告方式重塑酬載,包括 SOAP 信封。
- 適用情境
- 當助理需要存取多個協定和驗證方式各異的第三方或內部 API,並希望把每個目標一次描述成設定、而不必為每個服務撰寫用戶端時適用。
- 執行需求
- 以 Python 套件形式透過 stdio 在本機執行,需安裝含 MCP 擴充的套件和 Python 環境。目標服務需可經網路存取。驗證憑證在各連接器規格中提供,而非透過已宣告的環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Api Connect,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-api-connect™
[License: Apache 2.0] [Python 3.10+]
One payload in, any API out. mcp-api-connect is a protocol- and auth-agnostic connector engine: describe a target service (URL, protocol, auth, request/ response shape) once, then send it a normalized payload and get a normalized response back — whether the target is a REST/JSON API, a legacy SOAP service, protected by an API key, Basic auth, a Bearer token, or OAuth2 client credentials.
It ships as three things built on the same core engine, so however you want to use it, you can:
- A Python library —
pip install mcp-api-connect, callMCPAPIConnectEnginedirectly, no server required. - A standalone HTTP API —
pip install mcp-api-connect[api], runmcp-api-connect-api, POST to/invoke. - An MCP server —
pip install mcp-api-connect[mcp], runmcp-api-connect, point any MCP client (Claude, etc.) at it so an agent can call registered connectors — or arbitrary services on the fly — as tools.
Why
Every integration project reinvents the same wheel: a REST client here, a
SOAP client there, one auth flow per service, ad-hoc request/response
mapping scattered across the codebase. mcp-api-connect centralizes that into one
declarative spec (InvokeSpec) and one execution engine, so adding a new
target service is config, not code.
Quick start (library)
Quick start (HTTP API)
Register a reusable connector once, then invoke it by name:
Quick start (MCP)
Or run it in a container (stdio transport):
Exposes tools: invoke (stateless, one-off), register_connector,
list_connectors, invoke_connector (by name), delete_connector. An agent
can register a connector for "the Salesforce API" once, then just say "call
it with this payload" from then on.
➜ Full setup for Claude Desktop / Claude Code / Cursor, persistence, security notes, and a worked example: docs/mcp-integration.md.
Core concepts
Target— base URL, protocol (rest|soap), timeout, default headers.AuthSpec—type(none,api_key,basic,bearer,oauth2_client_credentials) + aconfigdict shaped for that type. OAuth2 tokens are fetched and cached automatically.RequestFormat/ResponseFormat— content type (json,xml,soap) plus a declarativefield_map({"target.path": "$.source.jsonpath"}) for reshaping payloads without writing code, or a Jinja2body_templatefor full control (required for SOAP envelopes).InvokeSpec— bundles the three above; the unit of "how to reach one service." Store it as a namedConnectoror pass it inline per call.
See src/mcp_api_connect/core/models.py for the
full schema, and docs/auth-reference.md for the
config shape each auth type expects.
Documentation
- docs/mcp-integration.md — full MCP client setup (Claude Desktop, Claude Code, Cursor), persistence, security, tool reference, worked example, troubleshooting
- docs/auth-reference.md —
configfields for every auth type - CONTRIBUTING.md — dev setup, running tests, PR expectations
Extending
- New auth type: implement
AuthStrategy, register viaengine.register_auth_strategy(...). - New protocol (e.g. GraphQL): implement
ProtocolAdapter, register viaengine.register_adapter(...). - New connector storage backend: implement
ConnectorStore(ships withInMemoryConnectorStoreandSqliteConnectorStore, credentials encrypted at rest via Fernet).
Roadmap
- OAuth2 authorization-code flow, mTLS, AWS SigV4 auth strategies
- WSDL-driven SOAP (optional
zeep-backed adapter, no hand-written envelope needed) - GraphQL adapter
- Postgres-backed
ConnectorStore - Retry/backoff + rate limiting policies per connector
- SSRF-safe target allow-listing for public deployments
Development
License
Apache License 2.0 — see LICENSE and NOTICE.
Contributions are accepted under the same license (inbound = outbound); see CONTRIBUTING.md.
Trademark
mcp-api-connect™ is a trademark of Balaji Venkatasubramaniyar. The Apache 2.0 license covers copyright and patents but grants no trademark rights. You may use the name to refer to this project and to state compatibility, but not to name a fork, product, or service, or to imply endorsement. See TRADEMARKS.md for the full policy.
來源:README.md,提交 29e0246
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分