Inksnow MCP Proxy
Proxies MCP requests from Cursor IDE to a custom HTTP server, enabling custom tool integrations.
README
Inksnow MCP Proxy
这是一个用于 Cursor IDE 的 MCP (Model Control Protocol) 代理服务器,可以将 Cursor 的 MCP 请求代理到您自己的服务器。
特性
- 支持将 Cursor IDE 的所有 MCP 请求代理到自定义 HTTP 服务器
- 支持日志调试(设置环境变量 DEBUG=1 可输出详细日志)
- 自动处理初始化、通知、工具调用等 MCP 协议请求
- 详细的错误处理与日志输出,便于排查问题
安装
npm install -g inksnow-mcp-proxy
使用方法
命令行方式
npx inksnow-mcp-proxy <server-url>
例如:
npx inksnow-mcp-proxy http://localhost:3000
环境变量方式
MCP_SERVER_URL=http://localhost:3000 npx inksnow-mcp-proxy
日志调试
如需查看详细日志,请设置环境变量:
export DEBUG=1 # Linux/Mac
启动参数说明
<server-url>:目标 MCP 服务端地址,必须以 http:// 或 https:// 开头。- 也可通过环境变量 MCP_SERVER_URL 指定。
Cursor 配置
在 Cursor IDE 中,您可以通过以下步骤配置 MCP 服务器:
- 打开 Cursor IDE
- 点击左下角的设置图标(⚙️)
- 在设置中找到 "AI" 或 "MCP" 设置部分
- 在 MCP 配置中添加以下配置:
{
"mcp": {
"command": "npx inksnow-mcp-proxy",
"args": ["http://your-server.com"],
"env": {
"MCP_SERVER_URL": "http://your-server.com",
"DEBUG": "1"
}
}
}
配置说明
command: 启动命令,使用npx inksnow-mcp-proxyargs: 命令行参数,指定目标服务器 URLenv: 环境变量配置,可以在这里设置MCP_SERVER_URL
完整配置示例
"mcpServers": {
"HLMcp": {
"command": "npx",
"args": ["inksnow-mcp-proxy"],
"env": {}
}
}
协议说明
本代理服务器支持 MCP 协议,主要功能包括:
- 请求转发:将 Cursor 的 MCP 请求(如 initialize、tools/call 等)转发到指定的 HTTP 服务器。
- 响应处理:处理并返回服务器的响应,支持结构化内容。
- 错误处理:详细日志与错误输出,便于排查。
- 通知与取消:自动处理 notifications/initialized、notifications/cancelled 等通知类请求。
支持的请求类型
initialize: 初始化连接tools/call: 工具调用请求- 其他所有 MCP 协议支持的请求类型
故障排除
如果遇到问题,请检查:
- 目标服务器是否正常运行
- URL 是否正确(包含
http://或https://) - 网络连接是否正常
- 防火墙设置是否允许连接
- 如需调试详细日志,设置环境变量
DEBUG=1
许可证
ISC
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.