Integrations
Supports configuration through environment variables stored in .env files for settings like API keys, debug mode, and file size limits.
Provides file sharing capabilities with AI models, allowing users to upload and analyze files with size limits configurable through environment variables.
Repository hosting for the project code with installation instructions for cloning from GitHub.
PoE代理MCP服务器
一个 FastMCP 服务器,用于代理 Poe.com API,提供查询 Poe 模型和共享文件的工具。该服务器经过专门设计,以确保与 Claude 3.7 Sonnet 以及 Poe 提供的其他模型兼容。
特征
- 多模型支持:查询 Poe 上可用的各种模型,包括 GPT-4o、Claude 3 Opus、Claude 3 Sonnet、Gemini Pro 等
- Claude 3.7 Sonnet 兼容性:针对 Claude 思考协议的特殊处理
- 文件共享:与支持它的模型共享文件
- 会话管理:在多个查询中维护对话上下文
- 流响应:从模型获取实时流响应
- Web 客户端支持:通过 SSE 传输将服务器与 Web 客户端一起使用
安装
先决条件
- Python 3.8 或更高版本
- Poe API 密钥(从Poe.com获取)
快速安装
使用提供的安装脚本:
该脚本将:
- 创建虚拟环境
- 安装所有依赖项
- 如果不存在则创建一个
.env
文件 - 为 STDIO 和 SSE 传输设置服务器
手动设置
如果您希望手动设置:
- 克隆此存储库:Copy
- 创建虚拟环境并安装依赖项:Copy
- 使用您的 Poe API 密钥创建一个
.env
文件:Copy
作为包安装
您还可以将服务器安装为 Python 包:
这将使poe-mcp
和poe-mcp-sse
命令在您的环境中可用。
配置
可以使用环境变量来配置服务器:
多变的 | 描述 | 默认 |
---|---|---|
POE_API_KEY | 您的 Poe API 密钥(必需) | 没有任何 |
DEBUG_MODE | 启用详细日志记录 | false |
CLAUDE_COMPATIBLE | 启用 Claude 兼容模式 | true |
MAX_FILE_SIZE_MB | 上传的最大文件大小 | 10 |
SESSION_EXPIRY_MINUTES | 会话有效期(分钟) | 60 |
用法
运行服务器
标准模式(STDIO)
这是默认模式,适合命令行使用:
Web 模式 (SSE)
此模式使服务器可以与 Web 客户端一起使用:
服务器默认在端口 8000 上启动,或者您可以指定其他端口。
可用工具
该服务器公开以下工具:
ask_poe
向 Poe 机器人提问。
ask_with_attachment
向带有文件附件的 Poe 机器人提问。
clear_session
清除会话的对话历史记录。
list_available_models
列出可用的 Poe 模型及其功能。
get_server_info
获取有关服务器配置的信息。
Web 客户端
examples
目录中包含一个简单的 Web 客户端。使用方法如下:
- 以 SSE 模式启动服务器:Copy
- 在浏览器中打开
examples/web_client.html
。 - 输入服务器 URL(默认值:
http://localhost:8000
)并点击“获取可用模型”。 - 选择一个模型,输入您的提示,然后单击“提交”。
示例
简单查询
文件附件
克劳德兼容性
此服务器包含针对 Claude 模型(尤其是 Claude 3.7 Sonnet)的特殊处理,该模型需要针对思考协议进行特定的格式化。使用 Claude 模型时:
- 服务器自动检测 Claude 模型并应用适当的格式。
- 您可以通过提供
thinking
参数来启用思考协议:Copy - 如果思考协议失败,服务器会自动重试。
测试
运行测试套件:
对于详细输出:
故障排除
常见问题
- 身份验证错误:请确保
.env
文件中的 Poe API 密钥正确。 - 连接错误:检查您是否可以从网络访问 Poe.com。
- 文件上传错误:确保文件存在且在大小限制之内。
- Claude 思考协议问题:如果您遇到 Claude 思考协议的错误,请尝试通过在
.env
文件中设置CLAUDE_COMPATIBLE=false
来禁用它。
调试
通过在.env
文件中设置DEBUG_MODE=true
来启用调试模式,以获取更详细的日志。
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
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.
代理 Poe.com API 的 FastMCP 服务器,允许用户查询各种 AI 模型(包括 Claude 3.7 Sonnet)并与支持它的模型共享文件。
Related MCP Servers
- AsecurityFlicenseAqualityAn MCP protocol server that enables web search functionality using the Tavily API, allowing AI assistants to perform internet searches in real-time.Last updated -42Python
- -securityAlicense-qualityAn MCP server that enables AI assistants like Claude to interact with Substack newsletters, allowing for post retrieval, content searching, and author information access through a standardized interface.Last updated -PythonMIT License
- -securityAlicense-qualityAn MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.Last updated -125PythonMIT License
- -securityFlicense-qualityAn MCP server that crawls API documentation websites and exposes their content to AI models, enabling them to search, browse, and reference API specifications.Last updated -Python