mcp-server-deepseek
A MCP server provides access to DeepSeek-R1's reasoning capabilities for LLMs
tizee
README
mcp-server-deepseek
A Model Context Protocol (MCP) server that provides access to DeepSeek-R1's reasoning capabilities, allowing non-reasoning models to generate better responses with enhanced thinking.
Overview
This server acts as a bridge between LLM applications and DeepSeek's reasoning capabilities. It exposes DeepSeek-R1's reasoning content through an MCP tool, which can be used by any MCP-compatible client.
The server is particularly useful for:
- Enhancing responses from models without native reasoning capabilities
- Accessing DeepSeek-R1's thinking process for complex problem solving
- Adding structured reasoning to Claude or other LLMs that support MCP
Features
- Access to DeepSeek-R1: Connects to DeepSeek's API to leverage their reasoning model
- Structured Thinking: Returns reasoning in a structured
<thinking>
format - Integration with MCP: Fully compatible with the Model Context Protocol
- Error Handling: Robust error handling with detailed logging
Installation
Prerequisites
- Python 3.13 or higher
- An API key for DeepSeek
Setup
-
Clone the repository:
git clone https://github.com/yourusername/mcp-server-deepseek.git cd mcp-server-deepseek
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the package:
pip install -e .
-
Create a
.env
file with your DeepSeek API credentials:cp .env.example .env
-
Edit the
.env
file with your API key and model details:MCP_SERVER_DEEPSEEK_MODEL_NAME=deepseek-reasoner MCP_SERVER_DEEPSEEK_API_KEY=your_api_key_here MCP_SERVER_DEEPSEEK_API_BASE_URL=https://api.deepseek.com
Usage
Running the Server
You can run the server directly:
mcp-server-deepseek
Or use the development mode with the MCP Inspector:
make dev
MCP Tool
The server exposes a single tool:
think_with_deepseek_r1
This tool sends a prompt to DeepSeek-R1 and returns its reasoning content.
Arguments:
prompt
(string): The full user prompt to process
Returns:
- String containing DeepSeek-R1's reasoning wrapped in
<thinking>
tags
Example Usage
When used with Claude or another LLM that supports MCP, you can trigger the thinking process by calling the tool:
Please use the think_with_deepseek_r1 tool with the following prompt:
"How can I optimize a neural network for time series forecasting?"
Development
Testing
For development and testing, use the MCP Inspector:
npx @modelcontextprotocol/inspector uv run mcp-server-deepseek
Logging
Logs are stored in ~/.cache/mcp-server-deepseek/server.log
The log level can be configured using the LOG_LEVEL
environment variable (defaults to DEBUG
).
Troubleshooting
Common Issues
- API Key Issues: Ensure your DeepSeek API key is correctly set in the
.env
file - Timeout Errors: Complex prompts may cause timeouts. Try simplifying your prompt
- Missing Reasoning: Some queries might not generate reasoning content. Try rephrasing
Error Logs
Check the logs for detailed error messages:
cat ~/.cache/mcp-server-deepseek/server.log
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Acknowledgements
- Thanks to the DeepSeek team for their powerful reasoning model
- Built with the Model Context Protocol framework
Recommended Servers
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mathematica Documentation MCP server
A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.
kb-mcp-server
An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded
Research MCP Server
The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.