Model Context Protocol server for DeepSeek's advanced language models
# Add to your Claude Code skills
git clone https://github.com/DMontgomery40/deepseek-mcp-serverGuides for using mcp servers skills like deepseek-mcp-server.
deepseek-mcp-server is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by DMontgomery40. Model Context Protocol server for DeepSeek's advanced language models. It has 366 GitHub stars.
deepseek-mcp-server's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/DMontgomery40/deepseek-mcp-server" and add it to your Claude Code skills directory (see the Installation section above).
deepseek-mcp-server is primarily written in TypeScript. It is open-source under DMontgomery40 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh deepseek-mcp-server against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
An MCP server for DeepSeek V4.1 Flash and V4 Pro APIs: text and visual chat, the Responses API, FIM completion, Files API lifecycle operations, model discovery, balance checks, and bounded in-memory conversations.
Version 1.4.1 uses the stable MCP TypeScript SDK v2 and serves both the 2026-07-28 protocol and stateless legacy clients.
Checked against the official API docs on October 19, 2026:
deepseek-flash, now served by
DeepSeek-V4.1-Flash-1017. The October 17 model update did not change its API
calling method or model-token pricing.deepseek-v4-flash and deepseek-v4-flash-vision-exp are temporary aliases
for deepseek-flash.deepseek-v4-pro continues serving V4 Pro 0813. DeepSeek reversed its
announced September rerouting plan; Pro remains available with unchanged billing.list_models to check your account's live availability.deepseek-flash.“Multimodal” here means image understanding. This server does not generate images, video, or audio.
The server exposes eleven tools:
chat_completion: text or visual Chat Completions, thinking controls,
function tools, JSON output, streaming aggregation, and optional
conversation_id memory.create_response: stateless Responses API calls with text/images, reasoning
controls, function tools, the apply_patch custom tool, structured output, and semantic
streaming aggregation.completion: FIM completion through /beta/completions.list_models: live model discovery, including display names, context/output
limits, input/output modalities, effort levels, and API capabilities.get_user_balance: account availability and balances.upload_file: upload base64 JPEG, PNG, GIF, or WebP data and receive a
reusable DeepSeek file_id.list_files: list uploaded files with cursor, order, and purpose filters.retrieve_file: retrieve metadata for one file_id.delete_file: delete one uploaded file.reset_conversation: clear one local in-memory conversation.list_conversations: list local in-memory conversation IDs.Every tool declares an MCP output schema and behavior annotations. Full
provider payloads remain opt-in through include_raw_response=true.
none,
low, high, and max. Compatibility aliases are accepted: minimal maps
to low; medium and xhigh map to high; the thinking guide also accepts
ultra as an alias for max.stream_options requires stream=true. Chat forced tool choices
(required or a named function) require thinking to be disabled.prefix=true) and strict function tools
(strict=true) automatically use /beta/chat/completions. Configured /v1
and /beta bases are normalized for beta requests.web_search runs
server-side with deepseek-v4-pro; DeepSeek ignores it with deepseek-flash.
Other built-in tool types such as file_search, code_interpreter, and mcp
are ignored. The supported custom tool is
{ "type": "custom", "name": "apply_patch" }. Returned calls appear in
custom_tool_calls; the client is responsible for executing them and
sending custom_tool_call_output history. output_items preserves complete
returned reasoning, message, and tool-call items for replay without enabling
the full raw provider response.echo=true cannot accompany suffix or logprobs. Its guide documents a
4K output limit, so do not assume the Chat output ceiling applies.DEEPSEEK_REQUEST_TIMEOUT_MS applies to the complete request, including
reading the response body and streaming output. Streams are aggregated
into one MCP result; partial tokens are not forwarded as MCP notifications.DeepSeek opened separate Search and Fetch APIs on October 17, 2026. Each costs $0.75 per 1,000 successful requests, billed by request rather than tokens or result count. A request is billable only if it returns HTTP 200 with a non-empty Search result or Fetch page content. These charges are separate from model-token charges.
DeepSeek says Search and Fetch calls made through server-side tools in DeepSeek Harness, Claude Code, and Codex are temporarily free for DeepSeek API users; per-request billing starts October 31, 2026 at 16:00 UTC (November 1 at 00:00 Beijing time). This announced waiver names those clients; do not assume it covers other integrations. Check DeepSeek's current pricing before enabling search in an agent.
This MCP server does not expose standalone Search or Fetch tools. Its
create_response tool already accepts web_search for Pro, which DeepSeek
runs on its server; Flash ignores it. The new raw JSON endpoints are
POST /v1/tools/search and POST /v1/tools/fetch. The server's
MCP_TOOL_RATE_LIMIT limits MCP invocations, not DeepSeek spending.
Node.js 20 or newer is required.
Run directly over stdio:
DEEPSEEK_API_KEY="REPLACE_WITH_DEEPSEEK_KEY" npx -y deepseek-mcp-server@1
Codex CLI:
codex mcp add deepseek --env DEEPSEEK_API_KEY="REPLACE_WITH_DEEPSEEK_KEY" -- npx -y deepseek-mcp-server@1
Claude Code:
claude mcp add deepseek --env DEEPSEEK_API_KEY="REPLACE_WITH_DEEPSEEK_KEY" -- npx -y deepseek-mcp-server@1
Example MCP client configuration:
{
"mcpServers": {
"deepseek": {
"command": "npx",
"args": ["-y", "deepseek-mcp-server@1"],
"env": {
"DEEPSEEK_API_KEY": "REPLACE_WITH_DEEPSEEK_KEY"
}
}
}
}
chat_completion accepts image URLs:
{
"message": [
{ "type": "text", "text": "Describe this image." },
{
"type": "image_url",
"image_url": {
"url": "https://example.com/photo.png",
"detail": "high"
}
}
]
}
It also accepts a supported base64 data URL without first uploading it:
{
"message": [
{ "type": "text", "text": "What is shown here?" },
{
"type": "file",
"file_data": "data:image/png;base64,iVBORw0KGgo...",
"filename": "image.png"
}
]
}
For reuse, call upload_file, then pass its returned ID:
{
"filename": "diagram.png",
"file_data": "iVBORw0KGgo...",
"expires_after_seconds": 86400
}
{
"message": [
{ "type": "text", "text": "Explain this diagram." },
{ "type": "file", "file_id": "file-api-..." }
]
}
The same uploaded file can be used with create_response:
{
"input": [
{
"role": "user",
"content": [
{ "type": "input_text", "text": "Read the image." },
{ "type": "input_image", "file_id": "file-api-..." }
]
}
]
}
Supported image formats are JPEG, PNG, GIF, and WebP. Detail may be low,
high, original, or auto.
Inline images are limited to 32 MiB each, uploaded Files to 64 MiB, JSON request bodies to 48 MiB, and requests to 600 images. Local validation checks known inline sizes, image counts, and serialized UTF-8 body size. DeepSeek checks remote/downloaded and uploaded-file dimensions and aggregate sizes: 64 MiB total without file references, or 200 MiB including them. Dimensions are limited to 8192 pixels per side, dropping to 4096 when there are at least 15 images. External downloads must complete within 60 seconds.
The server does not fetch image URLs or read file metadata just to preflight these provider-side limits. Use the Files API for large or reused images.
upload_file accepts raw base64 or a supported image data URL. It deliberately
does not accept local file paths and does not fetch arbitrary URLs on the
server. Decoded uploads are limited to 64 MiB, and the bytes are
signature-checked before upload. Uploaded data is stored by DeepSeek under your
account; use an expiry or delete_file when it should not persist. Expiry must
be between 3,600 and 2,592,000 seconds. DeepSeek storage is limited to 25 GiB
and 10