loading…
Search for a command to run...
loading…
Enables intelligent LLM optimization and routing for Claude Desktop and HTTP clients, reducing token usage and automatically selecting the best model for each q
Enables intelligent LLM optimization and routing for Claude Desktop and HTTP clients, reducing token usage and automatically selecting the best model for each query.
Intelligent LLM Optimization & Routing for Claude Desktop and HTTP Clients

DeepMyst MCP Server creates a seamless bridge between DeepMyst and Claude Desktop or any client through the Model Context Protocol (MCP). This integration allows Claude and other clients to harness DeepMyst's powerful optimization and routing capabilities while maintaining your familiar workflows.
Token Optimization: DeepMyst identifies redundancies in prompts, intelligently compresses content, preserves key information, and maintains contextual meaning—all while significantly reducing token usage without sacrificing quality.
Smart Routing: The system analyzes each query's category, complexity level, and required capabilities. It evaluates available models based on performance benchmarks, token cost, response latency, and capability support through a weighted scoring system.
# Create a directory for the server
mkdir DeepMyst-MCP
cd DeepMyst-MCP
# Download the server code
# (Or copy the code from the provided deepmyst_mcp.py file)
# Create and activate a virtual environment (optional but recommended)
uv venv
source .venv/bin/activate # On macOS/Linux
# OR
.venv\Scripts\activate # On Windows
# Install dependencies
uv pip install mcp openai aiohttp uvicorn starlette
For Claude Desktop (STDIO Transport):
python deepmyst_mcp.py --stdio
# OR
uv run deepmyst_mcp.py --stdio
For HTTP Clients (SSE Transport):
python deepmyst_mcp.py --sse
# OR with custom host and port
python deepmyst_mcp.py --sse --host 127.0.0.1 --port 3000
The server now supports explicit command-line arguments:
--stdio - Run with STDIO transport (for Claude Desktop)--sse - Run with SSE transport (for HTTP clients)--host HOST - Specify host address (default: 0.0.0.0)--port PORT - Specify port number (default: 8000)--debug - Enable debug loggingYou can also use environment variables:
export HOST=127.0.0.1 # Change the host
export PORT=3000 # Change the port
python deepmyst_mcp.py --sse
The DeepMyst MCP Server is publicly available at: https://mcp.deepmyst.com
Available endpoints:
https://mcp.deepmyst.com/ssehttps://mcp.deepmyst.com/messagesOpen your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd the DeepMyst MCP server configuration:
{
"mcpServers": {
"deepmyst": {
"command": "python",
"args": [
"/path/to/deepmyst_mcp.py",
"--stdio"
]
}
}
}
The DeepMyst MCP server provides several powerful tools:
Get Best Model for Query
Analyzes your query and recommends the optimal model.
Prompt: What's the best model for writing a poem about quantum physics?
Parameters:
- api_key: your-deepmyst-api-key
Optimized Completion
Generates a response with token optimization to reduce costs.
Prompt: Use optimized_completion to explain quantum entanglement, with these parameters:
- api_key: your-deepmyst-api-key
- model: gpt-4o
- temperature: 0.7
Auto-Routed Completion
Generates a response using the DeepMyst router to select the best model.
Prompt: Use auto_routed_completion to generate a Python function with these parameters:
- api_key: your-deepmyst-api-key
- base_model: gpt-4o-mini
Smart Completion
Combines routing and optimization - first determines the best model for your query, then optionally applies token optimization.
Prompt: Use smart_completion to explain how blockchain works, with these parameters:
- api_key: your-deepmyst-api-key
- optimize: true
DeepMyst Completion
The most flexible tool with all options configurable.
Prompt: Use deepmyst_completion to summarize this article, with these parameters:
- api_key: your-deepmyst-api-key
- base_model: gpt-4o
- optimize: true
- auto_route: false
DeepMyst enables complex problems to be broken down and distributed across multiple specialized LLMs:
Example: For a complex business strategy analysis, DeepMyst could route market research to data-focused models, creative ideation to generative specialists, and risk assessment to models with better reasoning capabilities.
Efficiently manage and process large documents or complex conversations:
Example: When analyzing a 500-page legal document, DeepMyst can chunk the document, route sections to specialized legal analysis models, and progressively build a comprehensive analysis without hitting context limits.
Match tasks to the most suitable models based on their specific capabilities:
Example: A financial analysis workflow could route data processing to fast, efficient models, numerical analysis to math-specialized models, and final report generation to models with better writing capabilities.
With SSE transport support, you can integrate DeepMyst MCP into web applications:
Example: Build a web interface that connects to the DeepMyst MCP server, allowing users to interact with multiple LLMs through a unified UI.
DeepMyst supports multiple LLM providers including:
The server now requires clients to provide their DeepMyst API key with each tool call. This has several security implications:
Advantages:
Considerations:
For enhanced security in production environments:
Claude doesn't show the hammer icon:
API Key errors:
Server connection issues:
SSE transport issues:
MCP Inspector connectivity:
npx @modelcontextprotocol/inspector dev http://localhost:8000--env parameter which may cause parsing issuesCheck the DeepMyst MCP server logs for more detailed troubleshooting information. Logs are written to deepmyst.log in the same directory as the server script.
You can enable debug logging with the --debug flag:
python deepmyst_mcp.py --stdio --debug
For SSE deployments, you can check server health by accessing the deepmyst://health resource:
Prompt: Check the health status of the DeepMyst MCP server.
To connect to the public DeepMyst MCP server:
Connect to the public server using the SSE endpoints:
const mcpClient = new McpClient({
sseEndpoint: "https://mcp.deepmyst.com/sse",
messageEndpoint: "https://mcp.deepmyst.com/messages"
});
Use the MCP CLI with the SSE transport:
mcp connect sse --url https://mcp.deepmyst.com
To connect the MCP Inspector to the public server:
npx @modelcontextprotocol/inspector dev https://mcp.deepmyst.com
DeepMyst MCP Server is licensed under the MIT License
Выполни в терминале:
claude mcp add deepmyst-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.