deepseek-mcp-server
by: DMontgomery40
Model Context Protocol server for DeepSeek's advanced language models
📌Overview
Purpose: The DeepSeek MCP Server aims to facilitate seamless integration of DeepSeek's language models with applications supporting the Model Context Protocol (MCP), ensuring user anonymity through proxy usage.
Overview: The DeepSeek MCP Server acts as a bridge between DeepSeek's advanced language models and various MCP-compatible applications, such as Claude Desktop. It simplifies user interactions through natural language requests while maintaining robust performance and configuration management.
Key Features:
-
Automatic Model Fallback: If the primary model
deepseek-reasoner
is unavailable, the server automatically switches to a backup model,deepseek-chat
, optimizing for speed and usage across different scenarios. -
Multi-turn Conversation Support: This feature enables the server to maintain complete message history and context throughout conversational exchanges, crucial for complex discussions and training dialogue models.
-
Resource Discovery: Users can easily query available models, configuration settings, and customize options like temperature, token limits, and penalties to enhance their interaction experience.
DeepSeek MCP Server
A Model Context Protocol (MCP) server for the DeepSeek API, enabling integration of DeepSeek's language models with MCP-compatible applications like Claude Desktop.
Key Features
- Supports natural language requests for querying available models, configuration options, and current settings.
- Automatic model fallback if the primary model (
deepseek-reasoner
) is down — switches todeepseek-chat
automatically. - Custom model selection and tuning options:
- Temperature control (0.0 - 2.0)
- Max tokens limit
- Top P sampling (0.0 - 1.0)
- Presence penalty (-2.0 - 2.0)
- Frequency penalty (-2.0 - 2.0)
- Multi-turn conversation support:
- Maintains message history and context
- Preserves configuration throughout the conversation
- Handles complex dialogue flows automatically
Use Cases for Multi-turn Conversations
-
Training & Fine-tuning:
Provides formatted conversation data essential for training dialogue models. -
Complex Interactions:
Supports longer conversations involving:- Multi-step reasoning
- Interactive troubleshooting
- Detailed technical discussions
- Scenarios requiring context from earlier messages
Installation
Installing via Smithery
To install DeepSeek MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @dmontgomery40/deepseek-mcp-server --client claude
Manual Installation
npm install -g deepseek-mcp-server
Usage with Claude Desktop
Add the following to your claude_desktop_config.json
:
{
"mcpServers": {
"deepseek": {
"command": "npx",
"args": [
"-y",
"deepseek-mcp-server"
],
"env": {
"DEEPSEEK_API_KEY": "your-api-key"
}
}
}
}
Testing with MCP Inspector
To test the server locally:
-
Build the server:
npm run build
-
Run the server with MCP Inspector:
npx @modelcontextprotocol/inspector node ./build/index.js
The inspector opens in your browser and connects to the server via stdio transport. It allows you to:
- View available tools
- Test chat completions with different parameters
- Debug server responses
- Monitor server performance
License
MIT