mc-server-demo
@PanGan21
关于 mc-server-demo
Mini mcp server implementation
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-demo-pangan21": {
"command": "${workspaceFolder}/.venv/bin/python",
"args": [
"main.py"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is mc-server-demo?
mc-server-demo is a Model Context Protocol (MCP) server that retrieves the latest documentation for a queried library. It uses the Serper API to perform Google searches for the relevant documentation. The server is designed for developers who want to access library documentation programmatically via MCP tools, either for debugging or integration into IDEs like Cursor.
How to use mc-server-demo?
To use mc-server-demo, first set a SERPER_API_KEY in a .env file. Then create a virtual environment, activate it, and install dependencies with pip install -r requirements.txt. Run the server using the MCP inspector: npx @modelcontextprotocol/inspector python main.py. The inspector lists available tools, including get_docs, which accepts query strings. Alternatively, integrate the server with a client like Cursor IDE by adding a custom MCP server configuration that points to the Python interpreter and main.py.
Key features of mc-server-demo
- Retrieves the latest documentation for a queried library.
- Uses the Serper API for Google search.
- Exposes a single MCP tool:
get_docs. - Can be debugged via the MCP inspector.
- Integrates with Cursor IDE as a custom MCP server.
Use cases of mc-server-demo
- Fetching library documentation directly from within a development environment.
- Powering AI assistants that answer library documentation queries.
- Automating documentation lookups in CI/CD or documentation workflows.
FAQ from mc-server-demo
What API key is required?
The server requires a Serper API key, which must be set in a .env file as SERPER_API_KEY.
How do I run the server for debugging?
Run the MCP inspector command: npx @modelcontextprotocol/inspector python main.py, then visit the local inspector URL displayed in the terminal.
What tool is available for querying documentation?
The server provides a single tool called get_docs that accepts a query string.
How do I integrate mc-server-demo with Cursor IDE?
In Cursor, go to AI settings → Custom MCP Server, and add a configuration with the command "${workspaceFolder}/.venv/bin/python" and arguments ["main.py"].
What license is mc-server-demo released under?
The project is licensed under the MIT License.
其他 分类下的更多 MCP 服务器
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
Unity MCP ✨
justinpbarnettUnity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
评论