# Deepseek-Thinking-Claude-3.5-Sonnet-CLINE-MCP

> MCP Server

This repository implements a Model Context Protocol (MCP) server, leveraging DeepSeek R1 for reasoning and Claude 3.5 Sonnet for response generation via OpenRouter. It manages conversations, optimizes parameters, and supports

## Overview

- **Category:** AI
- **Language:** JavaScript
- **Stars:** 115
- **Forks:** 20
- **Owner:** newideas99
- **GitHub:** https://github.com/newideas99/Deepseek-Thinking-Claude-3.5-Sonnet-CLINE-MCP
- **Created:** 2025-01-25T17:16:46+00:00
- **Updated:** 2025-03-25T14:02:51+00:00
- **Source:** https://model-context-protocol.com/servers/deepseek-claude-reasoning-retrieval-augmented-thinking

## Setup

## Setup

**Installing via Smithery:**

To install DeepSeek Thinking with Claude 3.5 Sonnet for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@newideas99/Deepseek-Thinking-Claude-3.5-Sonnet-CLINE-MCP):

```bash
npx -y @smithery/cli install @newideas99/Deepseek-Thinking-Claude-3.5-Sonnet-CLINE-MCP --client claude
```

**Manual Installation:**

1. Clone the repository:
```bash
git clone https://github.com/yourusername/Deepseek-Thinking-Claude-3.5-Sonnet-CLINE-MCP.git
cd Deepseek-Thinking-Claude-3.5-Sonnet-CLINE-MCP
```

2. Install dependencies:
```bash
npm install
```

3. Create a `.env` file with your OpenRouter API key:
```env
# Required: OpenRouter API key for both DeepSeek and Claude models
OPENROUTER_API_KEY=your_openrouter_api_key_here

# Optional: Model configuration (defaults shown below)
DEEPSEEK_MODEL=deepseek/deepseek-r1  # DeepSeek model for reasoning
CLAUDE_MODEL=anthropic/claude-3.5-sonnet:beta  # Claude model for responses
```

4. Build the server:
```bash
npm run build
```

Add to your Cline MCP settings (usually in `~/.vscode/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`):

```json
{
  "mcpServers": {
    "deepseek-claude": {
      "command": "/path/to/node",
      "args": ["/path/to/Deepseek-Thinking-Claude-3.5-Sonnet-CLINE-MCP/build/index.js"],
      "env": {
        "OPENROUTER_API_KEY": "your_key_here"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}
```

## Tools

## Available Tools

1.  Two-Stage Processing: Uses DeepSeek R1 for initial reasoning and Claude 3.5 Sonnet for final response through OpenRouter.
2.  Smart Conversation Management: Detects active conversations, handles multiple concurrent conversations, filters out ended conversations, and supports context clearing.
3.  Optimized Parameters: Uses model-specific context limits and recommended settings for temperature, top_p, and repetition_penalty.
4.  `generate_response`: Main tool for generating responses with parameters for prompt, showing reasoning, clearing context, and including history.
5.  `check_response_status`: Tool for checking the status of a response generation task using a task ID.
6.  Response Polling: Uses a polling mechanism to handle long-running requests, providing task IDs and status updates.
