# deepseek-thinker-mcp

> MCP Server

This repository provides a Model Context Protocol (MCP) server, enabling AI clients like Claude Desktop to access Deepseek's reasoning process from the Deepseek API or a local Ollama server. It

## Overview

- **Category:** AI
- **Language:** JavaScript
- **Stars:** 69
- **Forks:** 7
- **Owner:** ruixingshi
- **GitHub:** https://github.com/ruixingshi/deepseek-thinker-mcp
- **Created:** 2025-02-13T02:25:03+00:00
- **Updated:** 2025-03-26T16:09:32+00:00
- **Source:** https://model-context-protocol.com/servers/deepseek-reasoning-mcp-server-for-ai

## Setup

## Setup

**Environment Configuration:**

**OpenAI API Mode:**
Set the following environment variables:
```bash
API_KEY=<Your OpenAI API Key>
BASE_URL=<API Base URL>
```

**Ollama Mode:**
Set the following environment variable:
```bash
USE_OLLAMA=true
```

**Integration with AI Client, like Claude Desktop:**
Add the following configuration to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "deepseek-thinker": {
      "command": "npx",
      "args": [
        "-y",
        "deepseek-thinker-mcp"
      ],
      "env": {
        "API_KEY": "<Your API Key>",
        "BASE_URL": "<Your Base URL>"
      }
    }
  }
}
```

**Using Ollama Mode:**
```json
{
  "mcpServers": {
    "deepseek-thinker": {
      "command": "npx",
      "args": [
        "-y",
        "deepseek-thinker-mcp"
      ],
      "env": {
        "USE_OLLAMA": "true"
      }
    }
  }
}
```

**Local Server Configuration:**

```json
{
  "mcpServers": {
    "deepseek-thinker": {
      "command": "node",
      "args": [
        "/your-path/deepseek-thinker-mcp/build/index.js"
      ],
      "env": {
        "API_KEY": "<Your API Key>",
        "BASE_URL": "<Your Base URL>"
      }
    }
  }
}
```

**Development Setup:**

```bash
# Install dependencies
npm install

# Build project
npm run build

# Run service
node build/index.js
```

## Tools

## Available Tools

		1. Dual Mode Support (OpenAI API mode support and Ollama local mode support)
		2. Focused Reasoning (Captures Deepseek's thinking process and provides reasoning output)
		3. get-deepseek-thinker (Perform reasoning using the Deepseek model)
