Token导航 LogoToken导航TokenDH.com
MCP Filter logo
开发工具stdio官方级别未说明来源级核验

MCP Filter

MCP Server

一个用于从多个MCP服务器中选择特定工具并组合成自定义服务器的工具。

工具数

2

提示词数

0

GitHub Stars

0

资源数

0
开发工具PythonClaudeAPI集成Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

Mafzii

提供方

Mafzii

最后核验

2026/5/17 20:19

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python -m mcp_filter

详细介绍

为concept和VERCEL工作,GITHUB OUATH问题

MCP工具过滤器

将多个MCP服务器中的特定工具组合到一个自定义服务器中。

快速开始

# Install dependencies
pip3 install -r requirements.txt

# (Optional) Set up authentication for servers that require it
cp .env.example ~/.config/mcp-filter/.env
# Edit ~/.config/mcp-filter/.env and add your API keys

# Run interactive mode
python -m mcp_filter

# Or list available servers (🔑 indicates auth required)
python -m mcp_filter --list-servers

它做什么

从多个MCP服务器中选择特定工具,并将其组合到一个经过筛选的服务器中。

示例:仅使用以下内容创建服务器:

  • create_page 来自Notion
  • get_deployments 来自Vercel

交互模式

python -m mcp_filter
  1. 选择服务器(例如。, 1,3 Notion+Vercel)
  2. 如果服务器需要身份验证(显示为🔑), 系统将提示您输入API密钥
  3. 从每个服务器中选择工具
  4. 在中获取组合过滤服务器 output/
  5. 可选择自动添加到Claude Code配置中

程序化使用

from mcp_filter import CodeGenerator

selected_tools = [
    {"name": "create_page", "server": "notion"},
    {"name": "get_deployments", "server": "vercel"},
]

server_commands = {
    "notion": "npx -y mcp-remote https://mcp.notion.com/mcp",
    "vercel": "npx -y mcp-remote https://mcp.vercel.com/mcp",
}

CodeGenerator.generate_filtered_mcp(
    server_commands=server_commands,
    selected_tools=selected_tools,
    output_file="my_server.py"
)

管理服务器

# Add server
python -m mcp_filter --add-server myserver "command to start server"

# Remove server
python -m mcp_filter --remove-server myserver

# List servers
python -m mcp_filter --list-servers

使用生成的服务器

在克劳德桌面

添加到 ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "my-filtered-server": {
      "command": "python3",
      "args": ["/absolute/path/to/output/filtered_server.py"]
    }
  }
}

独立

python3 output/filtered_server.py

默认服务器

  • 概念 - https://mcp.notion.com/mcp
  • GitHub 🔑 - 官方GitHub MCP(需要Docker+ GITHUB_PERSONAL_ACCESS_TOKEN)
  • 维尔塞尔 - https://mcp.vercel.com/mcp

需求

  • Python 3.6+
  • npx(Node.js)
  • Docker(GitHub MCP服务器需要)
  • 网络连接

认证

一些MCP服务器需要API密钥或令牌(用🔑).

设置

  1. 复制示例环境文件:
cp .env.example ~/.config/mcp-filter/.env
  1. 编辑 ~/.config/mcp-filter/.env 并添加您的凭据:
GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your_token_here
  1. 当你奔跑时 python -m mcp_filter,该工具将:

- 自动使用来自的凭据 .env 文件 - 提示您输入任何缺少的凭据 - 将新凭据保存到 .env 供将来使用 - 在Claude代码配置中包含凭据

在哪里获取凭证

  • GitHub个人访问令牌:

- 创建时间https://github.com/settings/tokens - 所需范围: repo, read:packages, read:org - 需要安装并运行Docker

故障排除

服务器无法连接:

  • 服务器标记为🔑 需要身份验证-检查您的 .env 文件
  • 先尝试Notion(无需身份验证)

未列出服务器:

python -m mcp_filter --add-server notion "npx -y mcp-remote https://mcp.notion.com/mcp"

项目结构

mcp_filter/
├── core/           # MCP client, config, code generation
├── cli/            # Display and input handling
└── interactive.py  # Main workflow

链接

目录标签

目录标签

开发工具PythonClaudeAPI集成MCP工具本地部署服务器组合

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP