by 66julienmartin
Provides a Model Context Protocol server that connects Claude Desktop to DeepSeek's R1 and V3 language models, enabling text generation with up to 8192‑token context windows.
The project implements a Model Context Protocol (MCP) server using Node.js/TypeScript. It bridges Claude Desktop with DeepSeek's powerful language models (R1 and V3), exposing the models through a stable, type‑safe interface that supports full MCP protocol features.
git clone https://github.com/66julienmartin/MCP-server-Deepseek_R1.git
cd deepseek-r1-mcp
npm install
cp .env.example .env # add your DeepSeek API key
npm run build
node build/index.js
or in development mode:
npm run dev # watches source files
{
"mcpServers": {
"deepseek_r1": {
"command": "node",
"args": ["/full/path/to/deepseek-r1-mcp/build/index.js"],
"env": { "DEEPSEEK_API_KEY": "your-api-key" }
}
}
}
src/index.ts
and change the model name from deepseek-reasoner
to deepseek-chat
.max_tokens
, temperature
, etc.DEEPSEEK_API_KEY
).src/index.ts
and replace model: "deepseek-reasoner"
with model: "deepseek-chat"
.max_tokens
accordingly.DEEPSEEK_API_KEY=your-key
to the .env
file; the server reads it at runtime.npm run dev
for on‑the‑fly TypeScript compilation in watch mode.A Model Context Protocol (MCP) server implementation for the Deepseek R1 language model. Deepseek R1 is a powerful language model optimized for reasoning tasks with a context window of 8192 tokens.
Why Node.js? This implementation uses Node.js/TypeScript as it provides the most stable integration with MCP servers. The Node.js SDK offers better type safety, error handling, and compatibility with Claude Desktop.
# Clone and install
git clone https://github.com/66julienmartin/MCP-server-Deepseek_R1.git
cd deepseek-r1-mcp
npm install
# Set up environment
cp .env.example .env # Then add your API key
# Build and run
npm run build
By default, this server uses the deepseek-R1 model. If you want to use DeepSeek-V3 instead, modify the model name in src/index.ts
:
// For DeepSeek-R1 (default)
model: "deepseek-reasoner"
// For DeepSeek-V3
model: "deepseek-chat"
deepseek-r1-mcp/
├── src/
│ ├── index.ts # Main server implementation
├── build/ # Compiled files
│ ├── index.js
├── LICENSE
├── README.md
├── package.json
├── package-lock.json
└── tsconfig.json
.env
file:DEEPSEEK_API_KEY=your-api-key-here
{
"mcpServers": {
"deepseek_r1": {
"command": "node",
"args": ["/path/to/deepseek-r1-mcp/build/index.js"],
"env": {
"DEEPSEEK_API_KEY": "your-api-key"
}
}
}
}
npm run dev # Watch mode
npm run build # Build for production
{
"name": "deepseek_r1",
"arguments": {
"prompt": "Your prompt here",
"max_tokens": 8192, // Maximum tokens to generate
"temperature": 0.2 // Controls randomness
}
}
The default value of temperature
is 0.2.
Deepseek recommends setting the temperature
according to your specific use case:
USE CASE | TEMPERATURE | EXAMPLE |
---|---|---|
Coding / Math | 0.0 | Code generation, mathematical calculations |
Data Cleaning / Data Analysis | 1.0 | Data processing tasks |
General Conversation | 1.3 | Chat and dialogue |
Translation | 1.3 | Language translation |
Creative Writing / Poetry | 1.5 | Story writing, poetry generation |
The server provides detailed error messages for common issues:
Contributions are welcome! Please feel free to submit a Pull Request.
MIT
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "deepseek_r1": { "command": "npx", "args": [ "-y", "deepseek-r1-mcp" ], "env": { "DEEPSEEK_API_KEY": "<YOUR_API_KEY>" } } } }
Discover more MCP servers with similar functionality and use cases
by danny-avila
Provides a customizable ChatGPT‑like web UI that integrates dozens of AI models, agents, code execution, image generation, web search, speech capabilities, and secure multi‑user authentication, all open‑source and ready for self‑hosting.
by ahujasid
BlenderMCP integrates Blender with Claude AI via the Model Context Protocol (MCP), enabling AI-driven 3D scene creation, modeling, and manipulation. This project allows users to control Blender directly through natural language prompts, streamlining the 3D design workflow.
by pydantic
Enables building production‑grade generative AI applications using Pydantic validation, offering a FastAPI‑like developer experience.
by GLips
Figma-Context-MCP is a Model Context Protocol (MCP) server that provides Figma layout information to AI coding agents. It bridges design and development by enabling AI tools to directly access and interpret Figma design data for more accurate and efficient code generation.
by mcp-use
Easily create and interact with MCP servers using custom agents, supporting any LLM with tool calling and offering multi‑server, sandboxed, and streaming capabilities.
by sonnylazuardi
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Figma, allowing Cursor to communicate with Figma for reading designs and modifying them programmatically.
by lharries
WhatsApp MCP Server is a Model Context Protocol (MCP) server for WhatsApp that allows users to search, read, and send WhatsApp messages (including media) through AI models like Claude. It connects directly to your personal WhatsApp account via the WhatsApp web multi-device API and stores messages locally in a SQLite database.
by idosal
GitMCP is a free, open-source remote Model Context Protocol (MCP) server that transforms any GitHub project into a documentation hub, enabling AI tools to access up-to-date documentation and code directly from the source to eliminate "code hallucinations."
by Klavis-AI
Klavis AI provides open-source Multi-platform Control Protocol (MCP) integrations and a hosted API for AI applications. It simplifies connecting AI to various third-party services by managing secure MCP servers and authentication.