DeepSeek MCP Server

DeepSeek MCP Server

deepseekmcp•bychew-z

A Go-based MCP server that integrates with the DeepSeek API to provide code review, file handling, and API account management tools.

License: MIT License•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Provides a deepseek_ask tool for code analysis, review, and general queries with optional file path inclusion and system prompts.
  • •Supports multiple DeepSeek models including chat, coder, and reasoner variants, with automatic discovery of available models.
  • •Handles local files directly by reading them, determining MIME type, and using their content as query context.
  • •Offers JSON mode for structured, parser-friendly responses suited to automation pipelines.

BEST FOR

  • •Automated code review and analysis of local source files within an MCP-enabled client.
  • •CI/CD pipelines and automation systems that need structured JSON output from code analysis.
  • •Managing DeepSeek API usage through balance checks and token estimation.

ABOUT DEEPSEEKMCP

DeepSeek MCP Server is cataloged as an MCP server attributed to chew-z. A Go-based MCP server that integrates with the DeepSeek API to provide code review, file handling, and API account management tools. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for DeepSeek MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which DeepSeek models does the server support?

It supports deepseek-chat, deepseek-coder, and deepseek-reasoner by default, and can discover additional models available through your API access level.

How does the server handle files passed to deepseek_ask?

It reads the files from the provided paths, determines the correct MIME type based on extension, and uploads the content to the DeepSeek API as query context.

Upstream README

View this exact version on GitHub

README.md · c2525a3f0697 · Fetched 2026-11-13 10:52:29 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

DeepSeek MCP Server

A production-grade MCP server integrating with DeepSeek's API, featuring advanced code review capabilities, efficient file management, and API account management.

Features

  • Multi-Model Support: Choose from various DeepSeek models including DeepSeek Chat and DeepSeek Coder
  • Code Review Focus: Built-in system prompt for detailed code analysis with markdown output
  • Automatic File Handling: Built-in file management with direct path integration
  • API Account Management: Check balance and estimate token usage
  • JSON Mode Support: Request structured JSON responses for easy parsing
  • Advanced Error Handling: Graceful degradation with structured error logging
  • Improved Retry Logic: Automatic retries with configurable exponential backoff for API calls
  • Security: Configurable file type restrictions and size limits
  • Performance Monitoring: Built-in metrics collection for request latency and throughput

Prerequisites

  • Go 1.21+
  • DeepSeek API key
  • Basic understanding of MCP protocol

Installation & Quick Start

# Clone and build
git clone https://github.com/your-username/DeepseekMCP
cd DeepseekMCP
go build -o bin/mcp-deepseek

# Start server with environment variables
export DEEPSEEK_API_KEY=your_api_key
export DEEPSEEK_MODEL=deepseek-chat
./bin/mcp-deepseek

Configuration

Claude Desktop

{
  "mcpServers": {
    "deepseek": {
      "command": "/Your/project/path/bin/mcp-deepseek",
      "env": {
        "DEEPSEEK_API_KEY": "YOUR_API_KEY",
        "DEEPSEEK_MODEL": "deepseek-chat"
      }
    }
  }
}

Environment Variables

VariableDescriptionDefault
DEEPSEEK_API_KEYDeepSeek API keyRequired
DEEPSEEK_MODELModel ID from available modelsdeepseek-chat
DEEPSEEK_SYSTEM_PROMPTSystem prompt for code reviewDefault code review prompt
DEEPSEEK_SYSTEM_PROMPT_FILEPath to file containing system promptEmpty
DEEPSEEK_MAX_FILE_SIZEMax upload size (bytes)10485760 (10MB)
DEEPSEEK_ALLOWED_FILE_TYPESComma-separated MIME types[Common text/code types]
DEEPSEEK_TIMEOUTAPI timeout in seconds90
DEEPSEEK_MAX_RETRIESMax API retries2
DEEPSEEK_INITIAL_BACKOFFInitial backoff time (seconds)1
DEEPSEEK_MAX_BACKOFFMaximum backoff time (seconds)10
DEEPSEEK_TEMPERATUREModel temperature (0.0-1.0)0.4

Example .env:

DEEPSEEK_API_KEY=your_api_key
DEEPSEEK_MODEL=deepseek-chat
DEEPSEEK_SYSTEM_PROMPT="Your custom code review prompt here"
# Alternative: load system prompt from file
# DEEPSEEK_SYSTEM_PROMPT_FILE=/path/to/prompt.txt
DEEPSEEK_MAX_FILE_SIZE=5242880  # 5MB
DEEPSEEK_ALLOWED_FILE_TYPES=text/x-go,text/markdown
DEEPSEEK_TEMPERATURE=0.7

Core API Tools

Currently, the server provides the following tools:

deepseek_ask

Used for code analysis, review, and general queries with optional file path inclusion.

{
  "name": "deepseek_ask",
  "arguments": {
    "query": "Review this Go code for concurrency issues...",
    "model": "deepseek-chat",
    "systemPrompt": "Optional custom review instructions",
    "file_paths": ["main.go", "config.go"],
    "json_mode": false
  }
}

deepseek_models

Lists all available DeepSeek models with their capabilities.

{
  "name": "deepseek_models",
  "arguments": {}
}

deepseek_balance

Checks your DeepSeek API account balance and availability status.

{
  "name": "deepseek_balance",
  "arguments": {}
}

deepseek_token_estimate

Estimates the token count for text or a file to help with quota management.

{
  "name": "deepseek_token_estimate",
  "arguments": {
    "text": "Your text to estimate...",
    "file_path": "path/to/your/file.go"
  }
}

Supported Models

The following DeepSeek models are supported by default:

Model IDDescription
deepseek-chatGeneral-purpose chat model balancing performance and efficiency
deepseek-coderSpecialized model for coding and technical tasks
deepseek-reasonerModel optimized for reasoning and problem-solving tasks

Note: The actual available models may vary based on your API access level. The server will automatically discover and make available all models you have access to through the DeepSeek API.

Supported File Types

ExtensionMIME Type
.gotext/x-go
.pytext/x-python
.jstext/javascript
.mdtext/markdown
.javatext/x-java
.c/.htext/x-c
.cpp/.hpptext/x-c++
25+ more(See getMimeTypeFromPath in deepseek.go)

Operational Notes

  • Degraded Mode: Automatically enters safe mode on initialization errors
  • Audit Logging: All operations logged with timestamps and metadata
  • Security: File content validated by MIME type and size before processing

File Handling

The server handles files directly through the deepseek_ask tool:

  1. Specify local file paths in the file_paths array parameter
  2. The server automatically:
    • Reads the files from the provided paths
    • Determines the correct MIME type based on file extension
    • Uploads the file content to the DeepSeek API
    • Uses the files as context for the query

This direct file handling approach eliminates the need for separate file upload/management endpoints.

JSON Mode Support

For integrations that require structured data output, the server supports JSON mode:

  • Structured Responses: Request properly formatted JSON responses from DeepSeek models
  • Parser-Friendly: Ideal for CI/CD pipelines and automation systems
  • Easy Integration: Simply set json_mode: true in your request

Example with JSON mode:

{
  "name": "deepseek_ask",
  "arguments": {
    "query": "Analyze this code and return a JSON object with: issues_found (array of strings), complexity_score (number 1-10), and recommendations (array of strings)",
    "model": "deepseek-chat",
    "json_mode": true,
    "file_paths": ["main.go", "config.go"]
  }
}

This returns a well-formed JSON response that can be parsed directly by your application.

Development

Command-line Options

The server supports these command-line options to override environment variables:

# Override the DeepSeek model to use
./bin/mcp-deepseek -deepseek-model=deepseek-coder

# Override the system prompt
./bin/mcp-deepseek -deepseek-system-prompt="Your custom prompt here"

# Override the temperature setting (0.0-1.0)
./bin/mcp-deepseek -deepseek-temperature=0.8

Running Tests

To run tests:

go test -v ./...

Running Linter

golangci-lint run

Formatting Code

gofmt -w .

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for DeepSeek MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/deepseekmcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent