@arikusi/deepseek-mcp-server 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +107 -79
- package/LICENSE +21 -21
- package/README.md +381 -354
- package/dist/index.js +372 -4
- package/dist/index.js.map +1 -1
- package/package.json +63 -63
package/README.md
CHANGED
|
@@ -1,354 +1,381 @@
|
|
|
1
|
-
# DeepSeek MCP Server
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/@arikusi/deepseek-mcp-server)
|
|
4
|
-
[](https://www.npmjs.com/package/@arikusi/deepseek-mcp-server)
|
|
5
|
-
[](https://opensource.org/licenses/MIT)
|
|
6
|
-
[](https://nodejs.org/)
|
|
7
|
-
[](https://www.typescriptlang.org/)
|
|
8
|
-
[](https://github.com/arikusi/deepseek-mcp-server/actions)
|
|
9
|
-
|
|
10
|
-
A Model Context Protocol (MCP) server that integrates DeepSeek AI models with MCP-compatible clients. Access DeepSeek's powerful chat and reasoning models directly from your development environment.
|
|
11
|
-
|
|
12
|
-
**Compatible with:**
|
|
13
|
-
- Claude Code CLI
|
|
14
|
-
- Gemini CLI (if MCP support is available)
|
|
15
|
-
- Any MCP-compatible client
|
|
16
|
-
|
|
17
|
-
> **⚠️ Note**: This is an unofficial community project and is not affiliated with DeepSeek.
|
|
18
|
-
|
|
19
|
-
## ⚡ Quick Start
|
|
20
|
-
|
|
21
|
-
### For Claude Code
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
# Install and configure with API key (available in all projects)
|
|
25
|
-
claude mcp add -s user deepseek npx @arikusi/deepseek-mcp-server -e DEEPSEEK_API_KEY=your-key-here
|
|
26
|
-
|
|
27
|
-
# Or install for current project only
|
|
28
|
-
claude mcp add deepseek npx @arikusi/deepseek-mcp-server -e DEEPSEEK_API_KEY=your-key-here
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
**Scope options:**
|
|
32
|
-
- `-s user`: Available in all your projects (recommended)
|
|
33
|
-
- `-s local`: Only in current project (default)
|
|
34
|
-
- `-s project`: Project-specific `.mcp.json` file
|
|
35
|
-
|
|
36
|
-
### For Gemini CLI
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
# Install and configure with API key
|
|
40
|
-
gemini mcp add deepseek npx @arikusi/deepseek-mcp-server -e DEEPSEEK_API_KEY=your-key-here
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
**Get your API key:** [https://platform.deepseek.com](https://platform.deepseek.com)
|
|
44
|
-
|
|
45
|
-
That's it! Your MCP client can now use DeepSeek models! 🎉
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## Features
|
|
50
|
-
|
|
51
|
-
- 🤖 **DeepSeek Chat**: Fast and capable general-purpose model
|
|
52
|
-
- 🧠 **DeepSeek Reasoner (R1)**: Advanced reasoning with chain-of-thought explanations
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
- `
|
|
139
|
-
- `
|
|
140
|
-
- `
|
|
141
|
-
- `
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
- **
|
|
188
|
-
- **
|
|
189
|
-
- **
|
|
190
|
-
- **
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
#
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
```bash
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
### "
|
|
262
|
-
|
|
263
|
-
1
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
```bash
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
npm
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
1
|
+
# DeepSeek MCP Server
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@arikusi/deepseek-mcp-server)
|
|
4
|
+
[](https://www.npmjs.com/package/@arikusi/deepseek-mcp-server)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://nodejs.org/)
|
|
7
|
+
[](https://www.typescriptlang.org/)
|
|
8
|
+
[](https://github.com/arikusi/deepseek-mcp-server/actions)
|
|
9
|
+
|
|
10
|
+
A Model Context Protocol (MCP) server that integrates DeepSeek AI models with MCP-compatible clients. Access DeepSeek's powerful chat and reasoning models directly from your development environment.
|
|
11
|
+
|
|
12
|
+
**Compatible with:**
|
|
13
|
+
- Claude Code CLI
|
|
14
|
+
- Gemini CLI (if MCP support is available)
|
|
15
|
+
- Any MCP-compatible client
|
|
16
|
+
|
|
17
|
+
> **⚠️ Note**: This is an unofficial community project and is not affiliated with DeepSeek.
|
|
18
|
+
|
|
19
|
+
## ⚡ Quick Start
|
|
20
|
+
|
|
21
|
+
### For Claude Code
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# Install and configure with API key (available in all projects)
|
|
25
|
+
claude mcp add -s user deepseek npx @arikusi/deepseek-mcp-server -e DEEPSEEK_API_KEY=your-key-here
|
|
26
|
+
|
|
27
|
+
# Or install for current project only
|
|
28
|
+
claude mcp add deepseek npx @arikusi/deepseek-mcp-server -e DEEPSEEK_API_KEY=your-key-here
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**Scope options:**
|
|
32
|
+
- `-s user`: Available in all your projects (recommended)
|
|
33
|
+
- `-s local`: Only in current project (default)
|
|
34
|
+
- `-s project`: Project-specific `.mcp.json` file
|
|
35
|
+
|
|
36
|
+
### For Gemini CLI
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# Install and configure with API key
|
|
40
|
+
gemini mcp add deepseek npx @arikusi/deepseek-mcp-server -e DEEPSEEK_API_KEY=your-key-here
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Get your API key:** [https://platform.deepseek.com](https://platform.deepseek.com)
|
|
44
|
+
|
|
45
|
+
That's it! Your MCP client can now use DeepSeek models! 🎉
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Features
|
|
50
|
+
|
|
51
|
+
- 🤖 **DeepSeek Chat**: Fast and capable general-purpose model
|
|
52
|
+
- 🧠 **DeepSeek Reasoner (R1)**: Advanced reasoning with chain-of-thought explanations
|
|
53
|
+
- 💰 **Cost Tracking**: Automatic cost calculation for every request (USD)
|
|
54
|
+
- 📋 **10 Prompt Templates**: Pre-built templates for debugging, code review, research, and more
|
|
55
|
+
- 🔄 **Streaming Support**: Real-time response generation
|
|
56
|
+
- 🛡️ **Type-Safe**: Full TypeScript implementation
|
|
57
|
+
- 🎯 **MCP Compatible**: Works with any MCP-compatible CLI (Claude Code, Gemini CLI, etc.)
|
|
58
|
+
|
|
59
|
+
## Installation
|
|
60
|
+
|
|
61
|
+
### Prerequisites
|
|
62
|
+
|
|
63
|
+
- Node.js 18+
|
|
64
|
+
- A DeepSeek API key (get one at [https://platform.deepseek.com](https://platform.deepseek.com))
|
|
65
|
+
|
|
66
|
+
### Manual Installation
|
|
67
|
+
|
|
68
|
+
If you prefer to install manually:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
npm install -g @arikusi/deepseek-mcp-server
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### From Source
|
|
75
|
+
|
|
76
|
+
1. **Clone the repository**
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
git clone https://github.com/arikusi/deepseek-mcp-server.git
|
|
80
|
+
cd deepseek-mcp-server
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
2. **Install dependencies**
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm install
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
3. **Build the project**
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
npm run build
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Usage
|
|
96
|
+
|
|
97
|
+
Once configured, your MCP client will have access to the `deepseek_chat` tool and can use DeepSeek models.
|
|
98
|
+
|
|
99
|
+
**Example prompts:**
|
|
100
|
+
```
|
|
101
|
+
"Use DeepSeek to explain quantum computing"
|
|
102
|
+
"Ask DeepSeek Reasoner to solve: If I have 10 apples and buy 5 more..."
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Your MCP client will automatically call the `deepseek_chat` tool.
|
|
106
|
+
|
|
107
|
+
### Manual Configuration (Advanced)
|
|
108
|
+
|
|
109
|
+
If your MCP client doesn't support the `add` command, manually add to your config file:
|
|
110
|
+
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"mcpServers": {
|
|
114
|
+
"deepseek": {
|
|
115
|
+
"command": "npx",
|
|
116
|
+
"args": ["@arikusi/deepseek-mcp-server"],
|
|
117
|
+
"env": {
|
|
118
|
+
"DEEPSEEK_API_KEY": "your-api-key-here"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Config file locations:**
|
|
126
|
+
- **Claude Code**: `~/.claude.json` (add to `projects["your-project-path"].mcpServers` section)
|
|
127
|
+
- **Other MCP clients**: Check your client's documentation for config file location
|
|
128
|
+
|
|
129
|
+
## Available Tools
|
|
130
|
+
|
|
131
|
+
### `deepseek_chat`
|
|
132
|
+
|
|
133
|
+
Chat with DeepSeek AI models with automatic cost tracking.
|
|
134
|
+
|
|
135
|
+
**Parameters:**
|
|
136
|
+
|
|
137
|
+
- `messages` (required): Array of conversation messages
|
|
138
|
+
- `role`: "system" | "user" | "assistant"
|
|
139
|
+
- `content`: Message text
|
|
140
|
+
- `model` (optional): "deepseek-chat" (default) or "deepseek-reasoner"
|
|
141
|
+
- `temperature` (optional): 0-2, controls randomness (default: 1.0)
|
|
142
|
+
- `max_tokens` (optional): Maximum tokens to generate
|
|
143
|
+
- `stream` (optional): Enable streaming mode (default: false)
|
|
144
|
+
|
|
145
|
+
**Response includes:**
|
|
146
|
+
- Content with formatting
|
|
147
|
+
- Request information (tokens, model, cost in USD)
|
|
148
|
+
- Structured data with `cost_usd` field
|
|
149
|
+
|
|
150
|
+
**Example:**
|
|
151
|
+
|
|
152
|
+
```json
|
|
153
|
+
{
|
|
154
|
+
"messages": [
|
|
155
|
+
{
|
|
156
|
+
"role": "user",
|
|
157
|
+
"content": "Explain the theory of relativity in simple terms"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"model": "deepseek-chat",
|
|
161
|
+
"temperature": 0.7,
|
|
162
|
+
"max_tokens": 1000
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**DeepSeek Reasoner Example:**
|
|
167
|
+
|
|
168
|
+
```json
|
|
169
|
+
{
|
|
170
|
+
"messages": [
|
|
171
|
+
{
|
|
172
|
+
"role": "user",
|
|
173
|
+
"content": "If I have 10 apples and eat 3, then buy 5 more, how many do I have?"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"model": "deepseek-reasoner"
|
|
177
|
+
}
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
The reasoner model will show its thinking process in `<thinking>` tags followed by the final answer.
|
|
181
|
+
|
|
182
|
+
## Available Prompts
|
|
183
|
+
|
|
184
|
+
Pre-built prompt templates for common tasks:
|
|
185
|
+
|
|
186
|
+
### Core Reasoning
|
|
187
|
+
- **debug_with_reasoning**: Debug code with step-by-step analysis
|
|
188
|
+
- **code_review_deep**: Comprehensive code review (security, performance, quality)
|
|
189
|
+
- **research_synthesis**: Research topics and create structured reports
|
|
190
|
+
- **strategic_planning**: Create strategic plans with reasoning
|
|
191
|
+
- **explain_like_im_five**: Explain complex topics in simple terms
|
|
192
|
+
|
|
193
|
+
### Advanced
|
|
194
|
+
- **mathematical_proof**: Prove mathematical statements rigorously
|
|
195
|
+
- **argument_validation**: Analyze arguments for logical fallacies
|
|
196
|
+
- **creative_ideation**: Generate creative ideas with feasibility analysis
|
|
197
|
+
- **cost_comparison**: Compare LLM costs for tasks
|
|
198
|
+
- **pair_programming**: Interactive coding with explanations
|
|
199
|
+
|
|
200
|
+
Each prompt is optimized for the DeepSeek Reasoner model to provide detailed reasoning.
|
|
201
|
+
|
|
202
|
+
## Models
|
|
203
|
+
|
|
204
|
+
### deepseek-chat
|
|
205
|
+
|
|
206
|
+
- **Best for**: General conversations, coding, content generation
|
|
207
|
+
- **Speed**: Fast
|
|
208
|
+
- **Context**: 64K tokens
|
|
209
|
+
- **Cost**: Most economical
|
|
210
|
+
|
|
211
|
+
### deepseek-reasoner (R1)
|
|
212
|
+
|
|
213
|
+
- **Best for**: Complex reasoning, math, logic problems, multi-step tasks
|
|
214
|
+
- **Speed**: Slower (shows thinking process)
|
|
215
|
+
- **Context**: 64K tokens
|
|
216
|
+
- **Special**: Provides chain-of-thought reasoning
|
|
217
|
+
- **Output**: Both reasoning process and final answer
|
|
218
|
+
|
|
219
|
+
## Development
|
|
220
|
+
|
|
221
|
+
### Project Structure
|
|
222
|
+
|
|
223
|
+
```
|
|
224
|
+
deepseek-mcp-server/
|
|
225
|
+
├── src/
|
|
226
|
+
│ ├── index.ts # Main MCP server
|
|
227
|
+
│ ├── deepseek-client.ts # DeepSeek API wrapper
|
|
228
|
+
│ └── types.ts # TypeScript definitions
|
|
229
|
+
├── dist/ # Compiled JavaScript
|
|
230
|
+
├── package.json
|
|
231
|
+
├── tsconfig.json
|
|
232
|
+
└── README.md
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### Building
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
npm run build
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Watch Mode (for development)
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
npm run watch
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Testing Locally
|
|
248
|
+
|
|
249
|
+
```bash
|
|
250
|
+
# Set API key
|
|
251
|
+
export DEEPSEEK_API_KEY="your-key"
|
|
252
|
+
|
|
253
|
+
# Run the server
|
|
254
|
+
npm start
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
The server will start and wait for MCP client connections via stdio.
|
|
258
|
+
|
|
259
|
+
## Troubleshooting
|
|
260
|
+
|
|
261
|
+
### "DEEPSEEK_API_KEY environment variable is not set"
|
|
262
|
+
|
|
263
|
+
**Option 1: Use the correct installation command**
|
|
264
|
+
```bash
|
|
265
|
+
# Make sure to include -e flag with your API key
|
|
266
|
+
claude mcp add deepseek npx @arikusi/deepseek-mcp-server -e DEEPSEEK_API_KEY=your-key-here
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
**Option 2: Manually edit the config file**
|
|
270
|
+
|
|
271
|
+
If you already installed without the API key, edit your config file:
|
|
272
|
+
|
|
273
|
+
1. **For Claude Code**: Open `~/.claude.json` (Windows: `C:\Users\USERNAME\.claude.json`)
|
|
274
|
+
2. Find the `"mcpServers"` section under your project path
|
|
275
|
+
3. Add the `env` field with your API key:
|
|
276
|
+
```json
|
|
277
|
+
"deepseek": {
|
|
278
|
+
"type": "stdio",
|
|
279
|
+
"command": "npx",
|
|
280
|
+
"args": ["@arikusi/deepseek-mcp-server"],
|
|
281
|
+
"env": {
|
|
282
|
+
"DEEPSEEK_API_KEY": "your-api-key-here"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
```
|
|
286
|
+
4. Save and restart Claude Code
|
|
287
|
+
|
|
288
|
+
### "Failed to connect to DeepSeek API"
|
|
289
|
+
|
|
290
|
+
1. Check your API key is valid
|
|
291
|
+
2. Verify you have internet connection
|
|
292
|
+
3. Check DeepSeek API status at [https://status.deepseek.com](https://status.deepseek.com)
|
|
293
|
+
|
|
294
|
+
### Server not appearing in your MCP client
|
|
295
|
+
|
|
296
|
+
1. Verify the path to `dist/index.js` is correct
|
|
297
|
+
2. Make sure you ran `npm run build`
|
|
298
|
+
3. Check your MCP client's logs for errors
|
|
299
|
+
4. Restart your MCP client completely
|
|
300
|
+
|
|
301
|
+
### Permission Denied on macOS/Linux
|
|
302
|
+
|
|
303
|
+
Make the file executable:
|
|
304
|
+
|
|
305
|
+
```bash
|
|
306
|
+
chmod +x dist/index.js
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
## Publishing to npm
|
|
310
|
+
|
|
311
|
+
To share this MCP server with others:
|
|
312
|
+
|
|
313
|
+
1. Run `npm login`
|
|
314
|
+
2. Run `npm publish --access public`
|
|
315
|
+
|
|
316
|
+
Users can then install with:
|
|
317
|
+
|
|
318
|
+
```bash
|
|
319
|
+
npm install -g @arikusi/deepseek-mcp-server
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
## Contributing
|
|
323
|
+
|
|
324
|
+
Contributions are welcome! Please read our [Contributing Guidelines](CONTRIBUTING.md) before submitting PRs.
|
|
325
|
+
|
|
326
|
+
### Reporting Issues
|
|
327
|
+
|
|
328
|
+
Found a bug or have a feature request? Please [open an issue](https://github.com/arikusi/deepseek-mcp-server/issues/new/choose) using our templates.
|
|
329
|
+
|
|
330
|
+
### Development
|
|
331
|
+
|
|
332
|
+
```bash
|
|
333
|
+
# Clone the repo
|
|
334
|
+
git clone https://github.com/arikusi/deepseek-mcp-server.git
|
|
335
|
+
cd deepseek-mcp-server
|
|
336
|
+
|
|
337
|
+
# Install dependencies
|
|
338
|
+
npm install
|
|
339
|
+
|
|
340
|
+
# Build in watch mode
|
|
341
|
+
npm run watch
|
|
342
|
+
|
|
343
|
+
# Run tests
|
|
344
|
+
npm test
|
|
345
|
+
|
|
346
|
+
# Lint
|
|
347
|
+
npm run lint
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
## Changelog
|
|
351
|
+
|
|
352
|
+
See [CHANGELOG.md](CHANGELOG.md) for version history and updates.
|
|
353
|
+
|
|
354
|
+
## License
|
|
355
|
+
|
|
356
|
+
MIT License - see [LICENSE](LICENSE) file for details
|
|
357
|
+
|
|
358
|
+
## Support
|
|
359
|
+
|
|
360
|
+
- 📖 [Documentation](https://github.com/arikusi/deepseek-mcp-server#readme)
|
|
361
|
+
- 🐛 [Bug Reports](https://github.com/arikusi/deepseek-mcp-server/issues)
|
|
362
|
+
- 💬 [Discussions](https://github.com/arikusi/deepseek-mcp-server/discussions)
|
|
363
|
+
- 📧 Contact: [GitHub Issues](https://github.com/arikusi/deepseek-mcp-server/issues)
|
|
364
|
+
|
|
365
|
+
## Resources
|
|
366
|
+
|
|
367
|
+
- [DeepSeek Platform](https://platform.deepseek.com) - Get your API key
|
|
368
|
+
- [Model Context Protocol](https://modelcontextprotocol.io) - MCP specification
|
|
369
|
+
- [DeepSeek API Documentation](https://api-docs.deepseek.com) - API reference
|
|
370
|
+
|
|
371
|
+
## Acknowledgments
|
|
372
|
+
|
|
373
|
+
- Built with [Model Context Protocol SDK](https://github.com/modelcontextprotocol/typescript-sdk)
|
|
374
|
+
- Uses [OpenAI SDK](https://github.com/openai/openai-node) for API compatibility
|
|
375
|
+
- Created for the MCP community
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
**Made with ❤️ by [@arikusi](https://github.com/arikusi)**
|
|
380
|
+
|
|
381
|
+
This is an unofficial community project and is not affiliated with DeepSeek.
|