{"id":26190433,"url":"https://github.com/tizee/mcp-server-deepseek","last_synced_at":"2025-10-08T19:27:13.710Z","repository":{"id":281704275,"uuid":"946037221","full_name":"tizee/mcp-server-deepseek","owner":"tizee","description":"A MCP server provides access to DeepSeek-R1's reasoning capabilities for LLMs","archived":false,"fork":false,"pushed_at":"2025-03-10T17:35:19.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T11:13:56.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tizee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-10T14:09:40.000Z","updated_at":"2025-03-10T17:35:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb2a95d6-6c54-43dd-ac3e-cc56e229445a","html_url":"https://github.com/tizee/mcp-server-deepseek","commit_stats":null,"previous_names":["tizee/mcp-server-deepseek"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tizee/mcp-server-deepseek","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fmcp-server-deepseek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fmcp-server-deepseek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fmcp-server-deepseek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fmcp-server-deepseek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tizee","download_url":"https://codeload.github.com/tizee/mcp-server-deepseek/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tizee%2Fmcp-server-deepseek/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000706,"owners_count":26082805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-12T00:53:56.692Z","updated_at":"2025-10-08T19:27:13.704Z","avatar_url":"https://github.com/tizee.png","language":"Python","funding_links":[],"categories":["🤖 AI/ML"],"sub_categories":[],"readme":"# mcp-server-deepseek\n\nA [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that provides access to DeepSeek-R1's reasoning capabilities, allowing non-reasoning models to generate better responses with enhanced thinking.\n\n- read [R1+Sonnet set SOTA on aider’s polyglot benchmark](https://aider.chat/2025/01/24/r1-sonnet.html)\n\n## Overview\n\nThis server acts as a bridge between LLM applications and DeepSeek's reasoning capabilities. It exposes DeepSeek-R1's reasoning content through an MCP tool, which can be used by any MCP-compatible client.\n\nThe server is particularly useful for:\n\n- Enhancing responses from models without native reasoning capabilities\n- Accessing DeepSeek-R1's thinking process for complex problem solving\n- Adding structured reasoning to Claude or other LLMs that support MCP\n\n## Features\n\n- **Access to DeepSeek-R1**: Connects to DeepSeek's API to leverage their reasoning model\n- **Structured Thinking**: Returns reasoning in a structured `\u003cthinking\u003e` format\n- **Integration with MCP**: Fully compatible with the Model Context Protocol\n- **Error Handling**: Robust error handling with detailed logging\n\n## Installation\n\n### Prerequisites\n\n- Python 3.13 or higher\n- An API key for DeepSeek\n\n### Setup\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/mcp-server-deepseek.git\n   cd mcp-server-deepseek\n   ```\n\n2. Create a virtual environment:\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   ```\n\n3. Install the package:\n   ```bash\n   pip install -e .\n   ```\n\n4. Create a `.env` file with your DeepSeek API credentials:\n   ```bash\n   cp .env.example .env\n   ```\n\n5. Edit the `.env` file with your API key and model details:\n   ```\n   MCP_SERVER_DEEPSEEK_MODEL_NAME=deepseek-reasoner\n   MCP_SERVER_DEEPSEEK_API_KEY=your_api_key_here\n   MCP_SERVER_DEEPSEEK_API_BASE_URL=https://api.deepseek.com\n   ```\n\n## Usage\n\n### Running the Server\n\nYou can run the server directly:\n\n```bash\nmcp-server-deepseek\n```\n\nOr use the development mode with the MCP Inspector:\n\n```bash\nmake dev\n```\n\n### MCP Tool\n\nThe server exposes a single tool:\n\n#### `think_with_deepseek_r1`\n\nThis tool sends a prompt to DeepSeek-R1 and returns its reasoning content.\n\n**Arguments:**\n- `prompt` (string): The full user prompt to process\n\n**Returns:**\n- String containing DeepSeek-R1's reasoning wrapped in `\u003cthinking\u003e` tags\n\n### Example Usage\n\nWhen used with Claude or another LLM that supports MCP, you can trigger the thinking process by calling the tool:\n\n```\nPlease use the think_with_deepseek_r1 tool with the following prompt:\n\"How can I optimize a neural network for time series forecasting?\"\n```\n\n## Development\n\n### Testing\n\nFor development and testing, use the MCP Inspector:\n\n```bash\nnpx @modelcontextprotocol/inspector uv run mcp-server-deepseek\n```\n\n### Logging\n\nLogs are stored in `~/.cache/mcp-server-deepseek/server.log`\n\nThe log level can be configured using the `LOG_LEVEL` environment variable (defaults to `DEBUG`).\n\n## Troubleshooting\n\n### Common Issues\n\n- **API Key Issues**: Ensure your DeepSeek API key is correctly set in the `.env` file\n- **Timeout Errors**: Complex prompts may cause timeouts. Try simplifying your prompt\n- **Missing Reasoning**: Some queries might not generate reasoning content. Try rephrasing\n\n### Error Logs\n\nCheck the logs for detailed error messages:\n\n```bash\ncat ~/.cache/mcp-server-deepseek/server.log\n```\n\n## License\n\nMIT\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## Acknowledgements\n\n- Thanks to the DeepSeek team for their powerful reasoning model\n- Built with the [Model Context Protocol](https://modelcontextprotocol.io) framework\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftizee%2Fmcp-server-deepseek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftizee%2Fmcp-server-deepseek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftizee%2Fmcp-server-deepseek/lists"}