MCP服务器深度部署
用于深度部署场景的模型上下文协议(MCP)服务器实现。
安装
使用uvx(推荐)
直接从GitHub安装并运行:
uvx --from git+https://github.com/abckiran/mcpServerexample.git mcp-server地方发展
- 克隆存储库:
git clone https://github.com/abckiran/mcpServerexample.git
cd mcpServerexample- 安装依赖项:
uv sync- 运行服务器:
uv run mcp-serverMCP配置
将此配置添加到您的MCP客户端(例如Cursor的 mcp.json):
{
"mcpServers": {
"airbnb": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/abckiran/mcpServerexample.git",
"mcp-server"
]
}
}
}特性
- 数学运算:基本算术函数
- 可扩展架构:易于添加新工具和功能
- GitHub集成:从存储库直接部署
使用示例
服务器提供各种工具,包括:
- 数学计算
- 针对特定用例的自定义函数
项目结构
├── main.py # Main entry point
├── pyproject.toml # Project configuration
├── src/
│ └── mcpserver/
│ ├── __init__.py
│ ├── __main__.py
│ └── deployment.py
└── README.md需求
- Python 3.12+
- uv包管理器
许可证
这个项目是开源的,可以在MIT许可证下使用。
