# deepseek

Connects DeepSeek models to AI coding tools via MCP. Enables reasoning mode, fill-in-the-middle completions, and session tracking.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 26
- Author: arikusi
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/arikusi/deepseek-mcp-server
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/deepseek

## What it does

The server provides access to `deepseek-flash` and `deepseek-v4-pro` with a 1M-token context window. It exposes the `deepseek_chat` tool, `deepseek_fim` for code completion between existing blocks, and `deepseek_sessions` for stateful multi-turn history. It supports chain-of-thought reasoning alongside JSON schema validation with retry limits and ReDoS protection.

Under the hood, it features circuit breakers for fallback between models and cache-aware expense calculation based on peak rates. Running it locally demands Node.js 22 or newer and a valid `DEEPSEEK_API_KEY`. Without an API key, requests will fail.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `DEEPSEEK_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add deepseek -e DEEPSEEK_API_KEY=<DEEPSEEK_API_KEY> -- npx -y @arikusi/deepseek-mcp-server
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add deepseek --env DEEPSEEK_API_KEY=<DEEPSEEK_API_KEY> -- npx -y @arikusi/deepseek-mcp-server
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "deepseek": {
            "command": "npx",
            "args": [
                "-y",
                "@arikusi/deepseek-mcp-server"
            ],
            "env": {
                "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "deepseek": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@arikusi/deepseek-mcp-server"
            ],
            "env": {
                "DEEPSEEK_API_KEY": "<DEEPSEEK_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e DEEPSEEK_API_KEY=<DEEPSEEK_API_KEY> deepseek npx -y @arikusi/deepseek-mcp-server
```
Replace <…> with your own values

## When to use it
- query deepseek-flash and deepseek-v4-pro directly from coding assistants
- complete source code between a prefix and suffix via fill-in-the-middle
- retain conversation history across steps using session_id
- monitor API expenses with cache hit tracking and peak-rate calculations

## Example prompts
- Use DeepSeek to analyze this algorithm with thinking mode turned on.
- Fill the missing code between the start and end of this function using deepseek_fim.
- Check current token usage and costs via deepseek://usage.

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16717
- [labelhead-artist-momentum](https://affpapa.org/en/nevibecode/mcp/labelhead-artist-momentum.md) — MCP server · ★ 107423
- [Agent Skills Search Server](https://affpapa.org/en/nevibecode/mcp/agent-skills-search-server.md) — MCP server · ★ 26559
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23263
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9366
- [PraisonAI](https://affpapa.org/en/nevibecode/mcp/praisonai.md) — MCP server · ★ 9289

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
