KM

kamelirzouni/mcp-server-deepseek_r1

API 开发

本页由 AI 翻译,技术细节请以原文为准。 查看原文

68 stars 11 forks 质量 66 趋势 0MIT

kamelirzouni/mcp-server-deepseek_r1 是从 https://github.com/kamelirzouni/mcp-server-deepseek_r1. 导入的 MCP 服务器候选

概览

kamelirzouni/mcp-server-deepseek_r1 是从 https://github.com/kamelirzouni/mcp-server-deepseek_r1. 导入的 MCP 服务器候选

概述(AI 翻译)

Deepseek R1 语言模型的模型上下文协议(MCP)服务器实现。Deepseek R1 是一个强大的语言模型,优化用于推理任务,上下文窗口为 8192 个词。

为什么Node.js? 该实现采用 Node.js/TypeScript,因为它与 MCP 服务器集成最稳定。Node.js SDK 提供了更好的类型安全性、错误处理以及与 Claude Desktop 的兼容性。

快速启动

手动安装

先修条件

  • Node.js(V18或更高)
  • NPM
  • Claude桌面
  • Deepseek API 密钥

模型选择

默认情况下,该服务器使用 deepseek-R1 模型。如果你想使用 DeepSeek-V3,请修改 src/index.ts 中的模型名称:

项目结构

配置

  1. 创建一个 .env 文件:

  2. 更新 Claude 桌面配置:

发展

特色

  • 使用 Deepseek R1(8192 令牌上下文窗口)进行高级文本生成
  • 可配置参数(max_tokens,温度)
  • 带有详细错误信息的稳健错误处理
  • 完整的MCP协议支持
  • Claude桌面集成
  • 支持 DeepSeek-R1 和 DeepSeek-V3 型号

API 使用

温度参数

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Deepseek R1 MCP Server

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.

Quick Start

Installing manually

# 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

Prerequisites

  • Node.js (v18 or higher)
  • npm
  • Claude Desktop
  • Deepseek API key

Model Selection

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"

Project Structure

deepseek-r1-mcp/
├── src/
│   ├── index.ts             # Main server implementation
├── build/                   # Compiled files
│   ├── index.js
├── LICENSE
├── README.md
├── package.json
├── package-lock.json
└── tsconfig.json

Configuration

  1. Create a .env file:
DEEPSEEK_API_KEY=your-api-key-here
  1. Update Claude Desktop configuration:
{
  "mcpServers": {
    "deepseek_r1": {
      "command": "node",
      "args": ["/path/to/deepseek-r1-mcp/build/index.js"],
      "env": {
        "DEEPSEEK_API_KEY": "your-api-key"
      }
    }
  }
}

Development

npm run dev     # Watch mode
npm run build   # Build for production

Features

  • 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

API Usage

{
  "name": "deepseek_r1",
  "arguments": {
    "prompt": "Your prompt here",
    "max_tokens": 8192,    // Maximum tokens to generate
    "temperature": 0.2     // Controls randomness
  }
}

The Temperature Parameter

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
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "deepseek_r1": { "command": "node", "args": ["/path/to/deepseek-r1-mcp/build/index.js"], "env": { "DEEPSEEK_API_KEY": "your-api-key" } } } }