MT

martinbowling/thoughtful-claude

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

55 stars 8 forks 质量 46 趋势 13

通过集成 DeepSeek R1 的高级推理引擎🤔,增强了 Claude 的推理能力 MCP 服务器

概览

一台MCP服务器,通过集成DeepSeek R1的先进推理引擎,增强了Claude的推理能力。该服务器为Claude提供了通过大规模强化学习开发的DeepSeek最先进的推理模型。 - - 利用 DeepSeek R1 的推理引擎 - 无缝集成 Claude 的思维过程 - 处理复杂的多步推理任务 - - 环境变量支持(.env 文件) - 安全的 API 密钥处理 - 响应中无密钥暴露 - - 完整的MCP服务器实现 - 流响应处理 - 正确的错误管理 - - 异步/等待以实现高效处理 - 正确的异常处理 - 干净的代码组织 1. - Python 3.12+ - uv 包管理器 - DeepSeek API 密钥(从 platform.deepseek.com 获取一个) mcp 安装命令将是: - 用 Claude Desktop 注册服务器 - 设置环境变量。

概述(AI 翻译)

一台MCP服务器,通过集成DeepSeek R1的先进推理引擎,增强了Claude的推理能力。该服务器为Claude提供了通过大规模强化学习开发的DeepSeek最先进的推理模型。

🌟 特色

  • 高级推理积分

  • 利用 DeepSeek R1 的推理引擎

  • 与克劳德的思维过程无缝融合

  • 处理复杂的多步骤推理任务

  • 企业级安全

  • 环境变量支持(.env 文件)

  • 安全API密钥处理

  • 响应中无密钥暴露

  • **MCP 协议支持 **

  • 完整的MCP服务器实现

  • 流式响应处理

  • 正确的错误管理

  • 现代Python架构

  • 异步/等待以实现高效处理

  • 正确的异常处理

  • 干净的代码组织

📦 安装

  1. 先决条件
  1. 快速启动

mcp install 命令将:

  • 用 Claude Desktop 注册服务器
  • 设置来自[[T1]的环境变量。
  • 配置服务器运行正确的 Python 解释器

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

🤔 Thoughtful Claude - DeepSeek R1 Reasoning Server

An MCP server that enhances Claude’s reasoning capabilities by integrating DeepSeek R1’s advanced reasoning engine. This server provides Claude with access to DeepSeek’s state-of-the-art reasoning model, developed through large-scale reinforcement learning.

🌟 Features

  • Advanced Reasoning Integration

    • Leverages DeepSeek R1’s reasoning engine
    • Seamlessly integrates with Claude’s thought process
    • Handles complex multi-step reasoning tasks
  • Enterprise-Grade Security

    • Environment variable support (.env file)
    • Secure API key handling
    • No key exposure in responses
  • MCP Protocol Support

    • Full MCP server implementation
    • Streaming response handling
    • Proper error management
  • Modern Python Architecture

    • Async/await for efficient processing
    • Proper exception handling
    • Clean code organization

📦 Installation

  1. Prerequisites

  2. Quick Start

# Clone repository
git clone https://github.com/martinbowling/thoughtful-claude.git
cd thoughtful-claude

# Install MCP and dependencies
pip install "mcp[cli]" httpx python-dotenv

# Create .env file with your API key
echo "DEEPSEEK_API_KEY=your_key_here" > .env

# Install the MCP server with environment variables
mcp install server.py -f .env

The mcp install command will:

  • Register the server with Claude Desktop
  • Set up the environment variables from .env
  • Configure the server to run with the correct Python interpreter

You can verify the installation by checking for the 🔨 Tools icon in Claude Desktop’s interface.

🚀 Usage

  1. Start the Server The server will automatically start when you use Claude Desktop with the proper configuration.

  2. Basic Workflow

    • Claude receives a query requiring reasoning
    • Query is sent to DeepSeek R1 for advanced reasoning
    • Reasoning is returned to Claude wrapped in `` tags
    • Claude incorporates the reasoning into its response
  3. Example Queries

    • Mathematical comparisons: “Is 9.9 greater than 9.11?”
    • Logic puzzles: “If all A are B, and some B are C, what can we conclude?”
    • Complex analysis: “Compare and contrast quantum computing with classical computing”

🧠 Technical Details

Reasoning Pipeline

  1. Query Processing

    • Accepts context and question in structured format
    • Combines inputs for comprehensive reasoning
  2. DeepSeek R1 Integration

    • Model: deepseek-reasoner
    • Stream: Enabled for real-time processing
    • Max Tokens: 1 (optimized for reasoning extraction)
    • Output: Structured reasoning content

Error Handling

  • API Errors

    • Graceful error wrapping in `` tags
    • Clear error messages for debugging
    • Proper exception propagation
  • Connection Issues

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →