MA

metatool-ai/mcp-server-metamcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

155 stars 35 forks 质量 67 趋势 16Apache-2.0

metatool-ai/mcp-server-metamcp 是从 https://github.com/metatool-ai/mcp-server-metamcp. 导入的 MCP 服务器候选

概览

metatool-ai/mcp-server-metamcp 是从 https://github.com/metatool-ai/mcp-server-metamcp. 导入的 MCP 服务器候选

概述(AI 翻译)

** 🚨 弃用软件包警告 🚨 **

该本地代理包在 MetaMCP 2.0 全合一架构中已被弃用。

详情请查看https://github.com/metatool-ai/metamcp。

MetaMCP MCP 服务器是一个代理服务器,将多个 MCP 服务器合并为一个。它从 MetaMCP 应用获取工具/提示符/资源配置,并将工具/提示符/资源请求路由到正确的底层服务器。

MetaMCP 应用仓库:https://github.com/metatool-ai/metatool-app

安装

通过Smithery安装

有时Smithery能用(本地Windsurf确认),但有时不稳定,因为MetaMCP特殊,它能运行其他MCP。如果不行,请考虑使用手动安装。

通过Smithery自动安装MetaMCP MCP Server for Claude Desktop:

手动安装

用途

作为标准服务器(默认使用)

作为SSE服务器使用

通过SSE传输选项,服务器会启动一个Express.js的Web服务器,监听/sse端点的SSE连接,并接受/messages端点的消息。

作为可流式 HTTP 服务器使用

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MetaMCP MCP Server

🚨 DEPRECATED PACKAGE WARNING 🚨

This local proxy package is deprecated in MetaMCP’s 2.0 all-in-one architecture.

Please checkout https://github.com/metatool-ai/metamcp for more details.

MetaMCP MCP Server is a proxy server that joins multiple MCP⁠ servers into one. It fetches tool/prompt/resource configurations from MetaMCP App⁠ and routes tool/prompt/resource requests to the correct underlying server.

MetaMCP App repo: https://github.com/metatool-ai/metatool-app

Installation

Installing via Smithery

Sometimes Smithery works (confirmed in Windsurf locally) but sometimes it is unstable because MetaMCP is special that it runs other MCPs on top of it. Please consider using manual installation if it doesn’t work instead.

To install MetaMCP MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @metatool-ai/mcp-server-metamcp --client claude

Manual Installation

export METAMCP_API_KEY=
npx -y @metamcp/mcp-server-metamcp@latest
{
  "mcpServers": {
    "MetaMCP": {
      "command": "npx",
      "args": ["-y", "@metamcp/mcp-server-metamcp@latest"],
      "env": {
        "METAMCP_API_KEY": ""
      }
    }
  }
}

Usage

Using as a stdio server (default)

mcp-server-metamcp --metamcp-api-key 

Using as an SSE server

mcp-server-metamcp --metamcp-api-key  --transport sse --port 12006

With the SSE transport option, the server will start an Express.js web server that listens for SSE connections on the /sse endpoint and accepts messages on the /messages endpoint.

Using as a Streamable HTTP server

mcp-server-metamcp --metamcp-api-key  --transport streamable-http --port 12006

With the Streamable HTTP transport option, the server will start an Express.js web server that handles HTTP requests. You can optionally use --stateless mode for stateless operation.

Using with Docker

When running the server inside a Docker container and connecting to services on the host machine, use the --use-docker-host option to automatically transform localhost URLs:

mcp-server-metamcp --metamcp-api-key  --transport sse --port 12006 --use-docker-host

This will transform any localhost or 127.0.0.1 URLs to host.docker.internal, allowing the container to properly connect to services running on the host.

Configuring stderr handling

For STDIO transport, you can control how stderr is handled from child MCP processes:

在 GitHub 查看完整 README

安装

npx -y @metamcp/mcp-server-metamcp@latest
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "MetaMCP": { "command": "npx", "args": ["-y", "@metamcp/mcp-server-metamcp@latest"], "env": { "METAMCP_API_KEY": "<your api key>" } } } }