Skip to main content
Glama
Deepseek MCP Server

Deepseek MCP Server

by arikusi

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HTTP_PORTNoHTTP server port (when TRANSPORT=http)3000
TRANSPORTNoTransport mode: stdio or httpstdio
MAX_RETRIESNoMaximum retry count for failed requests2
MAX_SESSIONSNoMaximum number of concurrent sessions100
DEFAULT_MODELNoDefault model for requestsdeepseek-chat
SHOW_COST_INFONoShow cost info in responsestrue
REQUEST_TIMEOUTNoRequest timeout in milliseconds60000
DEEPSEEK_API_KEYYesYour DeepSeek API key
FALLBACK_ENABLEDNoEnable automatic model fallback on errorstrue
DEEPSEEK_BASE_URLNoCustom API endpointhttps://api.deepseek.com
ENABLE_MULTIMODALNoEnable multimodal (image) input supportfalse
MAX_MESSAGE_LENGTHNoMaximum message content length (characters)100000
SESSION_TTL_MINUTESNoSession time-to-live in minutes30
MAX_SESSION_MESSAGESNoMax messages per session (sliding window)200
SKIP_CONNECTION_TESTNoSkip startup API connection testfalse
CIRCUIT_BREAKER_THRESHOLDNoConsecutive failures before circuit opens5
CIRCUIT_BREAKER_RESET_TIMEOUTNoMilliseconds before circuit half-opens30000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
deepseek_chatA

Chat with DeepSeek models. deepseek-flash (V4.1 Flash, fast and economical) and deepseek-v4-pro (V4 Pro), both 1M context with optional chain-of-thought thinking mode. deepseek-v4-flash, deepseek-chat and deepseek-reasoner are legacy names, still accepted for backward compatibility (they resolve to deepseek-flash); prefer deepseek-flash. Features: multi-turn sessions (session_id), function calling (tools parameter), thinking mode, JSON output mode, multimodal input (when enabled), automatic cost tracking, and model fallback with circuit breaker resilience.

deepseek_fimA

Fill-in-the-Middle (FIM) completion with DeepSeek. Provide a prompt (prefix) and an optional suffix; the model completes the text in between. Ideal for code completion and content infilling. Runs in non-thinking mode on the Beta endpoint; output is capped at 4K tokens. The legacy names deepseek-v4-flash, deepseek-chat and deepseek-reasoner are still accepted and resolve to deepseek-flash (FIM has no thinking mode). Includes automatic cost tracking and model fallback with circuit breaker resilience.

deepseek_sessionsA

Manage multi-turn conversation sessions. List active sessions, delete a specific session, or clear all sessions. Sessions store conversation history for use with the session_id parameter in deepseek_chat.

Prompts

Interactive templates invoked by user choice

NameDescription
debug_with_reasoningDebug code issues using DeepSeek R1 reasoning model with step-by-step analysis
code_review_deepComprehensive code review analyzing quality, security, performance, and best practices
research_synthesisResearch a topic and synthesize information into a structured report
strategic_planningAnalyze options and create strategic plans with reasoning for each decision
explain_like_im_fiveExplain complex topics in simple terms using analogies and reasoning
mathematical_proofProve mathematical statements with rigorous step-by-step reasoning
argument_validationAnalyze arguments for logical fallacies and reasoning errors
creative_ideationGenerate creative ideas with reasoning for feasibility and value
cost_comparisonCompare costs of different LLMs for a task and show savings with DeepSeek
pair_programmingInteractive coding assistant that explains reasoning for code decisions
function_call_debugDebug function calling issues with DeepSeek models
create_function_schemaGenerate JSON Schema for function calling from natural language description

Resources

Contextual data attached and managed by the client

NameDescription
modelsList of available DeepSeek models with capabilities, context limits, and pricing information
configCurrent server configuration including base URL, timeouts, session settings, and fallback status. API key is masked for security.
usageReal-time usage statistics including total requests, token consumption, costs, active sessions, and cache hit ratio. Updated on every read.

TDQS

A4.1/5.0

Scored across 3 tools

Disambiguation5/5

Each tool targets a clearly different operation: conversational chat, prefix/suffix infill completion, and session lifecycle management. The chat vs. FIM boundary is explicitly spelled out (multi-turn messages vs. prompt+suffix infill), so an agent can select correctly without guessing.

Naming Consistency5/5

All three tools share the same snake_case namespace prefix and a predictable noun suffix (chat, fim, sessions), giving a uniform pattern across the surface. The plural 'sessions' for the collection-managing tool is a natural, consistent convention.

Tool Count5/5

Three tools map exactly onto the server's three capabilities: generation, infill, and session management. Nothing is redundant, and no thin filler tools were added just to pad the surface.

Completeness4/5

Core generation workflows (chat, FIM, multi-turn state) are fully covered, but there is no tool to inspect a specific session's stored history (only list/delete/clear) and no way to enumerate or query models/costs despite cost tracking being advertised. These are minor gaps an agent can work around.

Maintenance

ActivityNo data
ResponsivenessOutdated data