模型上下文协议服务器

MCP服务器实现,支持深度部署场景,提供数学运算、可扩展架构和GitHub集成功能。

  • by abckiran
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 abckiran/mcpserverexample

使用说明

MCP服务器深度部署

用于深度部署场景的模型上下文协议(MCP)服务器实现。

安装

使用uvx(推荐)

直接从GitHub安装并运行:

uvx --from git+https://github.com/abckiran/mcpServerexample.git mcp-server

地方发展

  1. 克隆存储库:
git clone https://github.com/abckiran/mcpServerexample.git
cd mcpServerexample
  1. 安装依赖项:
uv sync
  1. 运行服务器:
uv run mcp-server

MCP配置

将此配置添加到您的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许可证下使用。