Deepseek R1 MCP Server logo

Deepseek R1 MCP Server

by 66julienmartin

This is a Model Context Protocol (MCP) server implementation for the Deepseek R1 language model. It's designed to integrate with Claude Desktop and provides a stable Node.js/TypeScript environment for interacting with Deepseek's powerful language models.

View on GitHub

Last updated: N/A

What is Deepseek R1 MCP Server?

This server provides an interface to the Deepseek R1 language model using the Model Context Protocol (MCP). It allows you to leverage Deepseek R1's reasoning capabilities and 8192 token context window within applications like Claude Desktop.

How to use Deepseek R1 MCP Server?

First, clone the repository and install the dependencies using npm install. Then, configure your Deepseek API key in the .env file. Build the project using npm run build and configure Claude Desktop to use the server by providing the path to the built index.js file and setting the DEEPSEEK_API_KEY environment variable. You can also install it via Smithery.

Key features of Deepseek R1 MCP Server

  • Advanced text generation with Deepseek R1 (8192 token context window)

  • Configurable parameters (max_tokens, temperature)

  • Robust error handling with detailed error messages

  • Full MCP protocol support

  • Claude Desktop integration

  • Support for both DeepSeek-R1 and DeepSeek-V3 models

Use cases of Deepseek R1 MCP Server

  • Integrating Deepseek R1 into Claude Desktop

  • Utilizing Deepseek R1 for reasoning tasks

  • Generating text with a large context window

  • Building applications that leverage Deepseek's language model capabilities

FAQ from Deepseek R1 MCP Server

What is the default model used by the server?

The server defaults to using the deepseek-R1 model.

How do I switch to using DeepSeek-V3?

Modify the model property in src/index.ts to deepseek-chat.

What Node.js version is required?

Node.js version 18 or higher is required.

How do I configure the API key?

Create a .env file and set the DEEPSEEK_API_KEY variable to your API key.

What is the purpose of the temperature parameter?

The temperature parameter controls the randomness of the generated text. Lower values (e.g., 0.0) are suitable for coding and math, while higher values (e.g., 1.5) are suitable for creative writing.