
kamelirzouni/mcp-server-deepseek_r1
API developmentこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
kamelirzouni/mcp-server-deepseek r1は[https://github.com/kamelirzouni/mcp-server-deepseek_r1.からインポートされたMCPサーバー候補です
概要
kamelirzouni/mcp-server-deepseek r1は[https://github.com/kamelirzouni/mcp-server-deepseek_r1.からインポートされたMCPサーバー候補です
概要(AI 翻訳)
Deepseek R1言語モデル用のモデルコンテキストプロトコル(MCP)サーバーの実装。 Deepseek R1は、8192トークンのコンテキストウィンドウでタスクを推論するために最適化された強力な言語モデルです。
なぜNode.js? この実装では、Node.js/TypeScript を使用して、MCP サーバーとの最も安定した統合を実現します。 Node.js SDK は、Claude Desktop とより優れたタイプの安全、エラー処理、互換性を提供します。
クイックスタート
##手動でインストールする
前提条件
- Node.js(v18以上)
- 午後
- クロードデスクトップ
- Deepseek APIキー
モデル選択
デフォルトでは、このサーバーはdeepseek-R1モデルを使用します。 代わりに DeepSeek-V3 を使用する場合は、[src/index.ts] のモデル名を変更します。
プロジェクト構成
設定
-
[
.envファイルを作成する: -
Claudeデスクトップの設定を更新して下さい:
開発
##特徴
- Deepseek R1 (8192トークンコンテキストウィンドウ)で高度なテキスト生成
- 設定可能なパラメータ(max tokens、温度)
- 詳細なエラーメッセージを扱う強力なエラー
- フルMCPプロトコルサポート
- Claudeデスクトップの統合
- DeepSeek-R1とDeepSeek-V3モデルの両方のサポート
API の使用法
温度パラメータ
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Deepseek R1 MCP Server
A Model Context Protocol (MCP) server implementation for the Deepseek R1 language model. Deepseek R1 is a powerful language model optimized for reasoning tasks with a context window of 8192 tokens.
Why Node.js? This implementation uses Node.js/TypeScript as it provides the most stable integration with MCP servers. The Node.js SDK offers better type safety, error handling, and compatibility with Claude Desktop.
Quick Start
Installing manually
# Clone and install
git clone https://github.com/66julienmartin/MCP-server-Deepseek_R1.git
cd deepseek-r1-mcp
npm install
# Set up environment
cp .env.example .env # Then add your API key
# Build and run
npm run build
Prerequisites
- Node.js (v18 or higher)
- npm
- Claude Desktop
- Deepseek API key
Model Selection
By default, this server uses the deepseek-R1 model. If you want to use DeepSeek-V3 instead, modify the model name in src/index.ts:
// For DeepSeek-R1 (default)
model: "deepseek-reasoner"
// For DeepSeek-V3
model: "deepseek-chat"
Project Structure
deepseek-r1-mcp/
├── src/
│ ├── index.ts # Main server implementation
├── build/ # Compiled files
│ ├── index.js
├── LICENSE
├── README.md
├── package.json
├── package-lock.json
└── tsconfig.json
Configuration
- Create a
.envfile:
DEEPSEEK_API_KEY=your-api-key-here
- Update Claude Desktop configuration:
{
"mcpServers": {
"deepseek_r1": {
"command": "node",
"args": ["/path/to/deepseek-r1-mcp/build/index.js"],
"env": {
"DEEPSEEK_API_KEY": "your-api-key"
}
}
}
}
Development
npm run dev # Watch mode
npm run build # Build for production
Features
- Advanced text generation with Deepseek R1 (8192 token context window)
- Configurable parameters (max_tokens, temperature)
- Robust error handling with detailed error messages
- Full MCP protocol support
- Claude Desktop integration
- Support for both DeepSeek-R1 and DeepSeek-V3 models
API Usage
{
"name": "deepseek_r1",
"arguments": {
"prompt": "Your prompt here",
"max_tokens": 8192, // Maximum tokens to generate
"temperature": 0.2 // Controls randomness
}
}
The Temperature Parameter
The default value of temperature is 0.2.
Deepseek recommends setting the temperature according to your specific use case:
| USE CASE | TEMPERATURE | EXAMPLE |
|---|---|---|
| Coding / Math | 0.0 | Code generation, mathematical calculations |
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"deepseek_r1": {
"command": "node",
"args": ["/path/to/deepseek-r1-mcp/build/index.js"],
"env": {
"DEEPSEEK_API_KEY": "your-api-key"
}
}
}
}