Scan your whole stack
Are you using @arikusi/deepseek-mcp-server?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v2.5.1
@arikusi/deepseek-mcp-server was last scanned on 25 Nov 2026 at version 2.5.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 2.5.1 LATEST | 25 Nov 2026 | No rules fired |
| 2.3.0 | 5 Sep 2026 | No rules fired |
| 2.2.1 | 13 Aug 2026 | No rules fired |
Findings for v2.5.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 2.5.1; other versions have their own rules, not their own score.
0 CRITICAL 1 HIGH 1 MEDIUM 0 LOW
The publisher’s own README, as collected from the registry.
2.4.0 follows DeepSeek's V4.1 rename. The default model is now
deepseek-flash(V4.1 Flash), next todeepseek-v4-pro. Both have a 1M-token context window and optional chain-of-thought thinking.deepseek-v4-flash,deepseek-chatanddeepseek-reasonerkeep working as legacy names and are sent asdeepseek-flash, so existing configs need no change.
Use the hosted endpoint directly — no npm install, no Node.js required. Bring your own DeepSeek API key:
Claude Code:
claude mcp add --transport http deepseek \
https://deepseek-mcp.tahirl.com/mcp \
--header "Authorization: Bearer YOUR_DEEPSEEK_API_KEY"
Cursor / Windsurf / VS Code:
{
"mcpServers": {
"deepseek": {
"url": "https://deepseek-mcp.tahirl.com/mcp",
"headers": {
"Authorization": "Bearer ${DEEPSEEK_API_KEY}"
}
}
}
}
Claude Code:
claude mcp add -s user deepseek npx @arikusi/deepseek-mcp-server -e DEEPSEEK_API_KEY=your-key-here
Gemini CLI:
gemini mcp add deepseek npx @arikusi/deepseek-mcp-server -e DEEPSEEK_API_KEY=your-key-here
Scope options (Claude Code):
-s user: Available in all your projects (recommended)-s local: Only in current project (default)-s project: Project-specific .mcp.json fileGet your API key: https://platform.deepseek.com
deepseek-flash and deepseek-v4-pro, both with 1M context and optional chain-of-thought thinking modesession_id parameterdeepseek://models, deepseek://config, deepseek://usage — query model info, config, and usage statsthinking: {type: "enabled"}json_mode: trueresponse_schema and the server validates the output against it, with bounded repair retries and a ReDoS guard on schema patternsdeepseek_fim tooldeepseek_sessions toolENABLE_MULTIMODAL=true)deepseek-mcp.tahirl.com/mcp — BYOK (Bring Your Own Key), no install neededTRANSPORT=httpIf you prefer to install manually:
npm install -g @arikusi/deepseek-mcp-server
git clone https://github.com/arikusi/deepseek-mcp-server.git
cd deepseek-mcp-server
npm install
npm run build
Once configured, your MCP client will have access to deepseek_chat, deepseek_fim, and deepseek_sessions tools, plus 3 MCP resources.
Example prompts:
"Use DeepSeek to explain quantum computing"
"Ask DeepSeek Reasoner to solve: If I have 10 apples and buy 5 more..."
Your MCP client will automatically call the deepseek_chat tool.
If your MCP client doesn't support the add command, manually add to your config file:
{
"mcpServers": {
"deepseek": {
"command": "npx",
"args": ["@arikusi/deepseek-mcp-server"],
"env": {
"DEEPSEEK_API_KEY": "your-api-key-here"
}
}
}
}
Config file locations:
~/.claude.json (add to projects["your-project-path"].mcpServers section)deepseek_chatChat with DeepSeek AI models with automatic cost tracking and function calling support.
Parameters:
messages (required): Array of conversation messagesrole: "system" | "user" | "assistant" | "tool"content: Message texttool_call_id (optional): Required for tool role messagesmodel (optional): "deepseek-flash" (default) or "deepseek-v4-pro". The legacy names "deepseek-v4-flash", "deepseek-chat" and "deepseek-reasoner" are still accepted and resolve to deepseek-flash (reasoner always thinks); prefer "deepseek-flash".temperature (optional): 0-2, controls randomness (default: 1.0). Ignored when thinking mode is enabled.max_tokens (optional): Maximum tokens to generate (both models support up to 384000)stream (optional): Enable streaming mode (default: false)tools (optional): Array of tool definitions for function calling (max 128)tool_choice (optional): "auto" | "none" | "required" | {type: "function", function: {name: "..."}}thinking (optional): Toggle thinking mode, {type: "enabled"} to reason or {type: "disabled"} for a fast answer (non-thinking is the default)reasoning_effort (optional): "low", "high" (default) or "max", applies only while thinking mode is activejson_mode (optional): Enable JSON output mode (supported by both models)response_schema (optional): A JSON Schema to validate the model output against. Implies JSON output. The server validates the parsed result and, on failure, issues up to RESPONSE_SCHEMA_MAX_RETRIES repair retries (default 2, set 0 to disable) that feed the validation error back to the model. Schema regex patterns are screened for ReDoS and an unsafe pattern is rejected up front.session_id (optional): Session ID for multi-turn conversations. Previous context is automatically prepended.Response includes:
structuredContent.request: a self-contained per-request usage and cost summary (token counts, cache hit/miss, cost_usd, and the pricing_tier it was priced at), aggregated across any repair retriesstructuredContent.effective and fallback: what was actually sent after alias/thinking resolution, and any silent model fallback that firedstructuredContent.schema: when response_schema is used, {valid, attempts, error?}; json_parse_error when JSON output could not be recoveredExample:
{
"messages": [
{
"role": "user",
"content": "Explain the theory of relativity in simple terms"
}
],
"model": "deepseek-flash",
"temperature": 0.7,
"max_tokens": 1000
}
Reasoning Example (deepseek-flash with thinking enabled):
{
"messages": [
{
"role": "user",
"content": "If I have 10 apples and eat 3, then buy 5 more, how many do I have?"
}
],
"model": "deepseek-flash",
"thinking": { "type": "enabled" }
}
Thinking mode returns the chain-of-thought in <thinking> tags followed by the final answer.
DeepSeek V4 Pro Example (hardest tasks):
{
"messages": [
{
"role": "user",
"content": "Prove that the square root of 2 is irrational."
}
],
"model": "deepseek-v4-pro",
"thinking": { "type": "enabled" }
}
Function Calling Example:
{
"messages": [
{
"role": "user",
"content": "What's the weather in Istanbul?"
}
],
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "City name"
}
},
"required": ["location"]
}
}
}
],
"tool_choice": "auto"
}
When the model decides to call a function, the response includes tool_calls with the function name and arguments. You can then send the result back using a tool role message with the matching tool_call_id.
Thinking Mode Example:
{
"messages": [
{
"role": "user",
"content": "Analyze the time complexity of quicksort"
}
],
"model": "deepseek-flash",
"thinking": { "type": "enabled" }
}
When thinking mode is enabled, temperature and top_p are automatically ignored.
JSON Output Mode Example:
{
"messages": [
{
"role": "user",
"content": "Return a json object with name, age, and city fields for a sample user"
}
],
"model": "deepseek-flash",
"json_mode": true
}
JSON mode ensures the model outputs valid JSON. Include the word "json" in your prompt for best results. Supported by all models.
Schema-Validated JSON Example:
{
"messages": [
{
"role": "user",
"content": "Classify this review sentiment as json: \"Absolutely loved it\""
}
],
"model": "deepseek-flash",
"response_schema": {
"type": "object",
"properties": {
"sentiment": { "type": "string", "enum": ["positive", "negative", "neutral"] },
"confidence": { "type": "number", "minimum": 0, "maximum": 1 }
},
"required": ["sentiment", "confidence"],
"additionalProperties": false
}
}
The server validates the parsed output against the schema. If it does not match, it retries up to RESPONSE_SCHEMA_MAX_RETRIES times (default 2), feeding the validation error back to the model, and returns the first schema-valid object. A persistent mismatch is surfaced as structuredContent.schema.valid = false rather than a silently coerced answer. Regex patterns in the schema are screened for catastrophic backtracking (ReDoS); an unsafe pattern is rejected up front as an invalid schema.
Multi-Turn Session Example:
{
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
],
"session_id": "my-session-1"
}
Use the same session_id across requests to maintain conversation context. Messages are stored in memory and prepended automatically. In HTTP transport each connected MCP session has its own isolated session store — a session_id created by one HTTP client is not visible to another (see HTTP Transport below).
deepseek_fimFill-in-the-Middle completion. You give a prompt (the prefix) and an optional suffix, and the model completes the text in between. It is built for code completion and content infilling rather than conversation. FIM runs on DeepSeek's Beta endpoint in non-thinking mode, and the API caps output at 4096 tokens.
Parameters:
prompt (required): The prefix text before the gap. For code completion, this is the code up to the cursor.suffix (optional): The text after the gap. The model fills the space between prompt and suffix.model (optional): "deepseek-flash" (default) or "deepseek-v4-pro". The legacy names "deepseek-v4-flash", "deepseek-chat" and "deepseek-reasoner" are still accepted and resolve to deepseek-flash (FIM has no thinking mode).max_tokens (optional): Maximum tokens to generate, up to 4096.temperature (optional): 0-2, controls randomness (default: 1.0).stop (optional): A stop string or an array of up to 16 stop strings.Response includes:
text, usage, finish_reason, cost_usd and pricing_tier fieldsExample (code completion):
{
"prompt": "def fib(n):\n if n < 2:\n return n\n return ",
"suffix": "\n\nprint(fib(10))",
"model": "deepseek-flash",
"max_tokens": 64
}
The model returns the missing middle, e.g. fib(n-1) + fib(n-2), using both the prefix and the suffix as context. Available on both the npm/stdio server and the hosted worker endpoint.
deepseek_sessionsManage conversation sessions.
Parameters:
action (required): "list" | "clear" | "delete"session_id (optional): Required when action is "delete"Examples:
{"action": "list"}
{"action": "delete", "session_id": "my-session-1"}
{"action": "clear"}
MCP Resources provide read-only data about the server:
| Resource URI | Description |
|---|---|
deepseek://models |
Available models with capabilities, context limits, and pricing |
deepseek://config |
Current server configuration (API key masked) |
deepseek://usage |
Real-time usage statistics (requests, tokens, costs, sessions) |
When a model fails with a retryable error (429, 503, timeout), the server automatically falls back to the other model:
deepseek-flash fails → tries deepseek-v4-prodeepseek-v4-pro fails → tries deepseek-flashThe legacy names (which resolve to deepseek-flash) fall back to deepseek-v4-pro.
The circuit breaker protects against cascading failures:
CIRCUIT_BREAKER_THRESHOLD consecutive failures (default: 5), the circuit opens (fast-fail mode)CIRCUIT_BREAKER_RESET_TIMEOUT ms (default: 30000), it enters half-open state and sends a probe requestFallback can be disabled with FALLBACK_ENABLED=false.
Prompt templates (12 total):
Each prompt is optimized for thinking mode (deepseek-flash with thinking: {type: "enabled"}) to provide detailed reasoning.
Both models have a 1M-token context window, up to 384K output tokens, and support function calling, JSON mode, and optional chain-of-thought thinking. They are non-thinking by default here for fast responses; enable reasoning with thinking: {type: "enabled"}.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.