Back to MCP directory
publicPublicdnsLocal runtime

open-mcp

OpenMCP是一个将Web API转换为MCP服务器的标准及开源注册中心,为MCP客户端提供高效访问多种网络服务的统一方式。

article

README

🚀 OpenMCP

OpenMCP 是一个创新的项目,它定义了将网络 API 转换为 MCP 服务器的标准,同时提供了开源的遵循该标准的服务器注册表。借助 OpenMCP,MCP 客户端能够以高效的令牌方式向特定网络 API 发起请求。注册表中的服务器涵盖了广泛的服务,能让底层客户端 LLM 代表用户在众多领域获取数据并执行操作。

项目官网:https://www.open-mcp.org

🚀 快速开始

创建一个服务器

详细的创建服务器指南请参考:https://www.open-mcp.org/servers/creating-a-server

将 OpenMCP 服务器添加到 MCP 客户端

远程托管

...

本地托管

你可以点击下面的链接观看本地托管演示视频: 本地托管演示 - 观看视频

要求

  • 需要安装 Node.js v18 或更高版本(包含 npx 和 npm)

Claude 桌面

npx @open-mcp/config add {server-id} \
  ~/Library/Application\ Support/Claude/claude_desktop_config.json \
  --ENV_VAR=abc123

执行上述命令后,重新启动 Claude 桌面以加载工具。

Cursor 在项目的根目录运行以下命令,可将所有 cursor 项目添加到项目目录中:

npx @open-mcp/config add {server-id} \
  .cursor/mcp.json \
  --ENV_VAR=abc123

之后,转到 Cursor > 设置 > Cursor 设置,点击 MCP 确保服务器已启用。

其他客户端

npx @open-mcp/config add {server-id} \
  /path/to/config.json \
  --ENV_VAR=abc123

替代方案 如果你不想使用 CLI,可以手动使用 npm 安装包,然后在客户端配置中添加一个 node 命令,指定到 dist/index.js 的绝对路径。具体细节可参考各个服务器的 README。

转换网络 API -> OpenMCP

REST openapi.yaml / openapi.json

...

gRPC service.proto

...

JSON - RPC openrpc.json

...

GraphQL schema.gql

...

SOAP service.wsdl

...

PostgREST schema.sql

...

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client