MCP-演示
此仓库包含一个 MCP 演示的精简版本。该项目旨在演示使用qwen
API 接口的 MCP 服务和客户端的基本功能。
特征
轻量级和最小的实现。
使用
uv
进行依赖管理。与
qwen
API 集成。
先决条件
在使用此存储库之前,请确保已安装以下内容:
Python 3.10 或更高版本
uv
包管理器
设置说明
克隆存储库:
git clone https://github.com/tatocode/MCP-Demo.git cd MCP-Demo使用
uv
安装依赖项:uv sync在项目的根目录中创建一个
.env
文件并添加您的 API 密钥:API-KEY=xxxx将
xxxx
替换为qwen
API 的实际 API 密钥。运行项目:
uv run main.py mcp_server.py
笔记
.env
文件是确保项目正常运行所必需的。请勿公开您的 API 密钥。有关
qwen
API 的更多信息,请参阅其官方文档。
执照
本项目遵循 MIT 许可证。详情请参阅LICENSE文件。
贡献
欢迎贡献代码!欢迎随时提交 issue 或 PR,以改进本项目。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
与 qwen API 接口集成的 MCP 服务和客户端的最小演示,展示模型控制协议实现的基本功能。
Related MCP Servers
- AsecurityAlicenseAqualityA beginner-friendly Model Context Protocol (MCP) server that helps users understand MCP concepts, provides interactive examples, and lists available MCP servers. This server is designed to be a helpful companion for developers working with MCP. Also comes with a huge list of servers you can install.Last updated -32463Apache 2.0
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server implementation that provides EMQX MQTT broker interaction.Last updated -420Apache 2.0
- -securityAlicense-qualityA demonstration server that implements the Model Context Protocol (MCP) SDK, providing tools and endpoints for server-sent events and message handling.Last updated -7011MIT License
- AsecurityFlicenseAqualityA simple demonstration project for the Model Control Protocol (MCP) server that provides tools for AI assistants to fetch news articles, perform calculations, retrieve weather data, and generate personalized greetings.Last updated -3