DeepSeek MCP Server
DeepSeek MCP サーバー
ツールチェーンとコスト最適化をサポートする、DeepSeek API を使用したコード生成および補完機能を提供する MCP サーバー実装。
特徴
言語固有のサポートを備えたコード生成
コンテキスト認識によるコード補完
複数のターゲットでのコード最適化
複雑な操作のためのツールチェーン
コスト最適化のための組み込みキャッシュ
完全な型安全性を備えたTypeScript実装
Related MCP server: mentor-mcp-server
ツール
1. コードを生成する
言語固有のサポートを備えた DeepSeek API を使用してコードを生成します。
{
"name": "generate_code",
"params": {
"prompt": "Write a function that sorts an array",
"language": "typescript",
"temperature": 0.7
}
}2. 完全なコード
既存のコンテキストに基づいてインテリジェントなコード補完を取得します。
{
"name": "complete_code",
"params": {
"code": "function processData(data) {",
"prompt": "Add input validation and error handling",
"temperature": 0.7
}
}3. コードの最適化
パフォーマンス、メモリ使用量、読みやすさを考慮して既存のコードを最適化します。
{
"name": "optimize_code",
"params": {
"code": "your code here",
"target": "performance"
}
}4. 実行チェーン
コンテキストをステップ間で渡しながら、一連のツールを順番に実行します。
{
"name": "execute_chain",
"params": {
"steps": [
{
"toolName": "generate_code",
"params": {
"prompt": "Create a REST API endpoint",
"language": "typescript"
}
},
{
"toolName": "optimize_code",
"params": {
"target": "performance"
}
}
]
}
}インストール
リポジトリをクローンする
依存関係をインストールします:
npm installプロジェクトをビルドします。
npm run buildMCP 設定ファイルで DeepSeek API キーを設定します。
{
"mcpServers": {
"deepseek": {
"command": "node",
"args": ["/path/to/deepseek-mcp/build/index.js"],
"env": {
"DEEPSEEK_API_KEY": "your-api-key"
}
}
}
}使用法
サーバーはMCP互換のクライアントであればどれでも使用できます。MCP CLIを使用した例を以下に示します。
mcp use deepseek generate_code --params '{"prompt": "Write a hello world program", "language": "python"}'ツールチェーン
ツールチェーンを使用すると、複数の操作を単一のワークフローに統合できます。チェーン内の各ツールは、チェーンコンテキストを通じて前のツールの結果にアクセスできます。
チェーンの例:
初期コードを生成する
エラー処理を含むコードを完成させる
最終結果を最適化する
{
"steps": [
{
"toolName": "generate_code",
"params": {
"prompt": "Create a user authentication function",
"language": "typescript"
}
},
{
"toolName": "complete_code",
"params": {
"prompt": "Add input validation and error handling"
}
},
{
"toolName": "optimize_code",
"params": {
"target": "security"
}
}
]
}コスト最適化
サーバーは、API コストを最適化するためにいくつかの戦略を実装します。
TTLによるリクエストのキャッシュ
チェーン結果のキャッシュ
スマートプロンプト構築
使用状況分析のためのメタデータ追跡
発達
開発を開始するには:
npm run devクリーンアップして再構築するには:
npm run rebuild要件
Node.js >= 18.0.0
DeepSeek APIキー
MCP互換クライアント
ライセンス
ISC
Related MCP Connectors
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Build and supervise fleets of agents from Claude Code, Codex or Cursor. Connects over OAuth.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides code completion, bug fixing, and test generation for multiple programming languages, integrating with the Mistral Codestral API to enhance code development processes.2-
- AlicenseAqualityDmaintenanceProvides LLM Agents with AI-powered mentorship for code review, design critique, writing feedback, and brainstorming using the Deepseek API, enabling enhanced output in various development and strategic planning tasks.531Apache 2.0
- AlicenseNot gradedqualityNot gradedmaintenanceProvides unified development tools including code analysis, debugging, refactoring, documentation, testing, and project automation through multiple LLM providers (KIMI, GLM, OpenRouter). Features agentic audit capabilities with multi-model consensus for finding issues and generating direct fixes.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables whole-codebase code search using natural language queries by leveraging DeepSeek's 1M context window. Automatically shards large projects and utilizes prefix caching for cost-effective repeated searches.120 npm1ISC