Mcp Smart Proxy

io.github.daedalus由 GitHub 账号 daedalus 发布v0.1.1更新于 Oct 24, 2026

An MCP server that provides a smart proxy to other mcp servers

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

一个本地 MCP 网关,代理其他 MCP 服务器,并通过语义搜索暴露其工具以节省 token。

可以做什么
  • 通过 YAML 或 JSON 配置文件把多个上游 MCP 服务器聚合到一个代理后面
  • 以语义方式列出和搜索上游工具,再经代理调用这些工具
  • 监视配置目录,在运行时动态增删或修改上游服务器
  • 以本地 stdio 方式运行,或通过 streamable HTTP 在指定主机和端口提供服务
  • 从命令行建立索引、查看状态并校验代理配置
适用场景
当你连接多个 MCP 服务器、希望只有一个入口且工具列表保持精简,并用语义搜索按需查找工具而不是把所有工具定义都放进上下文时适用。
运行要求
需用 pip 安装 Python 包。需要一份描述上游服务器的代理配置文件,以及用于语义搜索的嵌入和向量存储后端。以本地进程运行;streamable HTTP 模式需指定主机和端口。
安装前请注意
代理位于助手与所有上游服务器之间,会继承这些服务器的访问权限及其使用的凭据。工具调用会转发给上游服务器,可能修改或删除其中的数据。被监视目录中的配置文件会被自动加载,只应指向可信文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Smart Proxy,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MCPSmartProxy

Token-efficient MCP server gateway with semantic tool search

[PyPI] [Python] [Coverage] [Ruff]

mcp-name: io.github.daedalus/mcp-smart-proxy

Install

bash
pip install mcp-smart-proxy

Usage

python
from mcp_smart_proxy import ProxyConfig
config = ProxyConfig.from_file("proxy.yaml")

CLI

bash
mcp-smart-proxy --helpmcp-smart-proxy serve --config proxy.yamlmcp-smart-proxy serve --config proxy.yaml --watch ./servers/mcp-smart-proxy serve --config proxy.yaml --transport streamable-http --host 0.0.0.0 --port 8000mcp-smart-proxy index --config proxy.yamlmcp-smart-proxy status --config proxy.yamlmcp-smart-proxy validate --config proxy.yaml

The --watch option monitors a directory for .yaml, .yml, or .json files containing upstream server configurations. Add, modify, or remove files to dynamically update the available servers at runtime.

Transport Options

The --transport option supports:

  • stdio (default) - Standard input/output transport for local MCP clients

API

Config

  • ProxyConfig - Main configuration model
  • UpstreamConfig - Upstream server configuration
  • EmbeddingConfig - Embedding backend configuration
  • VectorStoreConfig - Vector store backend configuration

Models

  • ListResult - Result from the list tool
  • SearchResult - Result from the search tool
  • ToolResult - Result from tool calls

Development

bash
git clone https://github.com/daedalus/mcp-smart-proxy.gitcd mcp-smart-proxypip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

来源:README.md,提交 06fa878

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分