Local MCP
基于fastmcp实现本地MCP服务。调用Qwen3-32b模型并使用MCP工具调用心知天气API实现实时天气查询及多轮对话流式输出
Ask AI about Local MCP
Powered by Claude · Grounded in docs
I know everything about Local MCP. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
MCP Local Server
This project sets up a local MCP (Modular Command Platform) server using FastMCP.
What is MCP?
MCP (Modular Command Platform) is a framework for building, running, and managing modular command-line tools and automations. It allows you to define and expose custom tools that can be accessed locally or remotely, making it easy to automate workflows and integrate with other systems.
Overview
The MCP local server runs on your machine and provides a way to register, manage, and execute modular tools. It uses FastMCP as the backend and communicates via the 'stdio' transport, making it suitable for integration with editors, scripts, or other local clients.
Installation
- Clone this repository.
- Install dependencies:
pip install -r requirements.txt
Usage
Start the server with:
python main.py
The server will start and listen for commands via standard input/output.
VS Code Integration
When you set up MCP in VS Code using the UI, the following configuration is added to your settings.json file (replace <your-path> with your actual project path):
"mcp": {
"servers": {
"localserver": {
"type": "stdio",
"command": "<your-path>/bin/python",
"args": [
"<your-path>/main.py"
]
}
}
}
This allows VS Code to communicate with your local MCP server.
License
This project is licensed under the GNU General Public License v3.0 (GPLv3). See the LICENSE file for details.
