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 Proxy MCP Server
A FastMCP server that proxies the Poe.com API, exposing tools for querying Poe models and sharing files. This server is specifically designed to ensure compatibility with Claude 3.7 Sonnet and other models available through Poe.
Features
- Multiple Model Support: Query various models available on Poe including GPT-4o, Claude 3 Opus, Claude 3 Sonnet, Gemini Pro, and more
- Claude 3.7 Sonnet Compatibility: Special handling for Claude's thinking protocol
- File Sharing: Share files with models that support it
- Session Management: Maintain conversation context across multiple queries
- Streaming Responses: Get real-time streaming responses from models
- Web Client Support: Use the server with web clients via SSE transport
Installation
Prerequisites
- Python 3.8 or higher
- A Poe API key (get one from Poe.com)
Quick Installation
Use the provided installation script:
The script will:
- Create a virtual environment
- Install all dependencies
- Create a
.env
file if it doesn't exist - Set up the server for both STDIO and SSE transports
Manual Setup
If you prefer to set up manually:
- Clone this repository:Copy
- Create a virtual environment and install dependencies:Copy
- Create a
.env
file with your Poe API key:Copy
Installation as a Package
You can also install the server as a Python package:
This will make the poe-mcp
and poe-mcp-sse
commands available in your environment.
Configuration
The server can be configured using environment variables:
Variable | Description | Default |
---|---|---|
POE_API_KEY | Your Poe API key (required) | None |
DEBUG_MODE | Enable verbose logging | false |
CLAUDE_COMPATIBLE | Enable Claude compatibility mode | true |
MAX_FILE_SIZE_MB | Maximum file size for uploads | 10 |
SESSION_EXPIRY_MINUTES | Session expiry duration in minutes | 60 |
Usage
Running the Server
Standard Mode (STDIO)
This is the default mode and is suitable for command-line usage:
Web Mode (SSE)
This mode enables the server to be used with web clients:
The server will start on port 8000 by default, or you can specify a different port.
Available Tools
The server exposes the following tools:
ask_poe
Ask a question to a Poe bot.
ask_with_attachment
Ask a question to a Poe bot with a file attachment.
clear_session
Clear a session's conversation history.
list_available_models
List available Poe models and their capabilities.
get_server_info
Get information about the server configuration.
Web Client
A simple web client is included in the examples
directory. To use it:
- Start the server in SSE mode:Copy
- Open
examples/web_client.html
in your browser. - Enter the server URL (default:
http://localhost:8000
) and click "Get Available Models". - Select a model, enter your prompt, and click "Submit".
Examples
Simple Query
File Attachment
Claude Compatibility
This server includes special handling for Claude models, particularly Claude 3.7 Sonnet, which requires specific formatting for the thinking protocol. When using Claude models:
- The server automatically detects Claude models and applies the appropriate formatting.
- You can enable the thinking protocol by providing a
thinking
parameter:Copy - If the thinking protocol fails, the server will automatically retry without it.
Testing
To run the test suite:
For verbose output:
Troubleshooting
Common Issues
- Authentication Error: Make sure your Poe API key is correct in the
.env
file. - Connection Error: Check that you can access Poe.com from your network.
- File Upload Error: Ensure the file exists and is within the size limit.
- Claude Thinking Protocol Issues: If you encounter errors with Claude's thinking protocol, try disabling it by setting
CLAUDE_COMPATIBLE=false
in your.env
file.
Debugging
Enable debug mode by setting DEBUG_MODE=true
in your .env
file for more detailed logs.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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.
A FastMCP server that proxies the Poe.com API, allowing users to query various AI models (including Claude 3.7 Sonnet) and share files with models that support it.
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