本项目建于2025-03-30,是一个MCP Client 与 MCP Server的样例实现(Python版本)
About
MCP Client 与 MCP Server基于SSE方式的样例实现(Python版本)
Details
- Author
- jayliangdl
- GitHub stars
- 9
- Downloads
- 402
- Categories
- Other
Jump to
- 基于 SSE 的 MCP 服务器和客户端样例实现
- 集成古腾堡计划 API 图书搜索工具
- 使用 OpenRouter.ai 进行 LLM 调用
- 支持 Python 3.13+,兼容 uv 或 pip 安装
- 服务器与客户端解耦运行,适合云原生场景
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
本项目建于2025-03-30,是一个MCP Client 与 MCP Server的样例实现(Python版本)Command (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
使用 uv 或 pip 安装依赖,复制 .env.sample 为 .env 并填入 OpenRouter API 密钥。先运行 mcp_server.py 启动服务器(可选 --host 和 --port 参数),再运行 client.py 并传入服务器的 SSE URL(如 http://localhost:8080/sse)连接并使用工具。
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"\u672c\u9879\u76ee\u5efa\u4e8e2025-03-30\uff0c\u662f\u4e00\u4e2amcp client \u4e0e mcp server\u7684\u6837\u4f8b\u5b9e\u73b0\uff08python\u7248\u672c\uff09": {
"py-mcp-sse": {
"command": "uv",
"args": [
"venv"
]
}
}
}
}
McpServers
{
"py-mcp-sse": {
"command": "uv",
"args": [
"venv"
]
}
}
本项目建于2025-03-30,是一个MCP Client 与 MCP Server的样例实现(Python版本)
它是以https://github.com/sidharthrajaram/mcp-sse为基础优化实现的【原项目上是基于(https://github.com/modelcontextprotocol/python-sdk/issues/145)的原始讨论,可下载原项目有更多说明】。
原版本是使用ANTHROPIC LLM实现,本版本调整使用OpenRouter.ai的LLM中转调用平台实现。
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



