A Model Context Protocol (MCP) server for the DeepSeek API, allowing seamless integration of DeepSeek's powerful language models with MCP-compatible applications like Claude Desktop.
To install DeepSeek MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @dmontgomery40/deepseek-mcp-server --client claude
npm install -g deepseek-mcp-server
Add this to your claude_desktop_config.json
:
{
"mcpServers": {
"deepseek": {
"command": "npx",
"args": [
"-y",
"deepseek-mcp-server"
],
"env": {
"DEEPSEEK_API_KEY": "your-api-key"
}
}
}
}
Note: The server intelligently handles these natural language requests by mapping them to appropriate configuration changes. You can also query the current settings and available models:
deepseek-reasoner
in the server), the server will automatically attempt to try with v3 (called deepseek-chat
in the server)Note: You can switch back and forth anytime as well, by just giving your prompt and saying "use
deepseek-reasoner
" or "usedeepseek-chat
"
Multi-turn conversation support:
This feature is particularly valuable for two key use cases:
Training & Fine-tuning: Since DeepSeek is open source, many users are training their own versions. The multi-turn support provides properly formatted conversation data that's essential for training high-quality dialogue models.
Complex Interactions: For production use, this helps manage longer conversations where context is crucial:
The implementation handles all context management and message formatting behind the scenes, letting you focus on the actual interaction rather than the technical details of maintaining conversation state.
You can test the server locally using the MCP Inspector tool:
Build the server:
npm run build
Run the server with MCP Inspector:
# Make sure to specify the full path to the built server
npx @modelcontextprotocol/inspector node ./build/index.js
The inspector will open in your browser and connect to the server via stdio transport. You can:
Note: The server uses DeepSeek's R1 model (deepseek-reasoner) by default, which provides state-of-the-art performance for reasoning and general tasks.
MIT
Seamless access to top MCP servers powering the future of AI integration.