Skip to content

Model Context Protocol server for DeepSeek's advanced language models

License

Notifications You must be signed in to change notification settings

DMontgomery40/deepseek-mcp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepSeek MCP Server

A Model Context Protocol (MCP) server for the DeepSeek API, allowing seamless integration of DeepSeek's powerful language models with MCP-compatible applications like Claude Desktop.

DeepSeek Server MCP server

Installation

npm install -g deepseek-mcp-server

Configuration

  1. Get your DeepSeek API key from DeepSeek Platform

  2. Set up your environment:

    export DEEPSEEK_API_KEY=your-api-key

    Or create a .env file:

    DEEPSEEK_API_KEY=your-api-key
    

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "deepseek": {
      "command": "npx",
      "args": [
        "-y",
        "deepseek-mcp-server"
      ],
      "env": {
        "DEEPSEEK_API_KEY": "your-api-key"
      }
    }
  }
}

Features

  • Chat completion tool with support for:
    • Custom model selection
    • Temperature control
    • Max tokens limit
    • Top P sampling
    • Presence penalty
    • Frequency penalty

Testing with MCP Inspector

You can test the server locally using the MCP Inspector tool:

  1. Build the server:

    npm run build
  2. Run the server with MCP Inspector:

    # Make sure to specify the full path to the built server
    npx @modelcontextprotocol/inspector node ./build/index.js

The inspector will open in your browser and connect to the server via stdio transport. You can:

  • View available tools
  • Test chat completions with different parameters
  • Debug server responses
  • Monitor server performance

Note: The server uses DeepSeek's R1 model (deepseek-reasoner) by default, which provides state-of-the-art performance for reasoning and general tasks.

License

MIT

About

Model Context Protocol server for DeepSeek's advanced language models

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published