Allows using OpenAI's models for text generation via the Model Context Protocol, requiring an API key for authentication.
Provides type safety throughout the application with Pydantic validation for request and response data.
Stores conversation history in a SQLite database with WAL mode and optimized indexes for high performance.
Uses YAML for configuration of LLM providers and settings in the src/config.yaml file.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Platformconnect to OpenAI and start a new chat session"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Backend OpenRouter
A high-performance chatbot platform connecting MCP servers with LLM APIs for intelligent tool execution.
π Quick Start
Connect: ws://localhost:8000/ws/chat
Related MCP server: Swagger/OpenAPI MCP Server
π‘ WebSocket API
Send Messages
Receive Responses
Message Types
Type | Purpose | Payload |
| Send user input |
|
| Start new session |
|
| AI response |
|
| Tool status |
|
βοΈ Configuration
Essential Settings (src/runtime_config.yaml)
MCP Servers (servers_config.json)
π§ Performance Tuning
Streaming Optimization
HTTP/2 Support
π οΈ Development
Code Standards
Use
uvfor package managementPydantic for data validation
Type hints required
Fail-fast error handling
Available Scripts
Code Formatting
π Project Structure
π Environment Variables
π¨ Troubleshooting
Common Issues
Problem | Solution |
Configuration not updating | Check file permissions on |
WebSocket connection fails | Verify server is running and port is correct |
MCP server errors | Check |
LLM API issues | Verify API keys and model configuration |
Debug Mode
Component Testing
β Features
Full MCP Protocol - Tools, prompts, resources
High Performance - SQLite with WAL mode, optimized indexes
Real-time Streaming - WebSocket with delta persistence
Multi-Provider - OpenRouter (100+ models), OpenAI, Groq
Type Safe - Pydantic validation throughout
Dynamic Configuration - Runtime changes without restart
Auto-Persistence - Automatic conversation storage
π Quick Reference
Command | Purpose |
| Start the platform |
| Reset to default config |
Edit | Change settings (auto-reload) |
Edit | Configure MCP servers |
π Support
Check logs for detailed error messages
Verify configuration syntax with YAML validator
Test individual components for isolation
Monitor WebSocket connections and database size
Requirements: Python 3.13+, uv package manager