mcp-deepthinking
An MCP (Model Context Protocol) server that provides a deep thinking tool powered by Groq Large Language Models (LLMs). This server enables complex reasoning, multi-step problem solving, and advanced planning capabilities through a simple API interface.
Features
- Deep Thinking Tool: Exposes a tool named
deepthinkingfor complex reasoning tasks. - Groq LLM Integration: Utilizes Groq's high-performance language models via the Groq API.
- Configurable Models: Supports multiple Groq models, configurable via environment variables.
- Async & Streaming Support: Designed for efficient, asynchronous operation.
- Easy Integration: Compatible with any MCP client.
Requirements
- Python >= 3.12
- Groq API Key (sign up at https://console.groq.com/)
- Supported Groq models:
deepseek-r1-distill-llama-70b(default)deepseek-r1-distill-qwen-32bqwen-qwq-32b
Installation
You can install dependencies using either uv (recommended) or pip.
Using uv (recommended)
uv pip install -r requirements.txt
# or directly
uv pip install fastmcp>=0.4.1 langchain-groq>=0.3.2 mcp[cli]>=1.6.0 python-dotenv>=1.1.0
Using pip
pip install fastmcp>=0.4.1 langchain-groq>=0.3.2 mcp[cli]>=1.6.0 python-dotenv>=1.1.0
Configuration
Create a .env file in the project root with the following content:
GROQ_API_KEY=your_groq_api_key_here
MODEL_ID=deepseek-r1-distill-llama-70b # optional, defaults to this model
GROQ_API_KEY(required): Your Groq API key.MODEL_ID(optional): One of the supported model IDs.
Usage
Run the MCP server:
python server.py
This will start the server using stdio transport.
Invoking the deepthinking tool
From an MCP-compatible client, you can invoke the deepthinking tool with a query string:
response = mcp.call_tool("deepthinking", {"query": "Explain the theory of relativity step by step."})
print(response)
The tool will return a detailed reasoning response generated by the Groq LLM.
Tool Details
deepthinking(query: str) -> str
A tool that helps AI perform deep thinking (reasoning) processes. It can be used for complex problem solving, planning, multi-step reasoning, and more.
- Arguments:
query(str): The input prompt or question.
- Returns:
str: The generated reasoning response, ending with</think>.
License
MIT License
Contact
For questions or support, please contact the maintainer.
Metadata
Release files for mcp-deepthinking 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_deepthinking-0.1.12.tar.gz | 427.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_deepthinking-0.1.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 431.7 kB
Release files / mcp_deepthinking-0.1.12.tar.gz
| Download URL | mcp_deepthinking-0.1.12.tar.gz |
|---|---|
| Size | 427.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75dff7b97f9c84a273090a9a2694f744fb7c5fae00c65a7ee14c5dcc9002bc9c
|
|
BLAKE2b-256 checksum How to use checksums |
2e6dc6a6b845206b5d5f315c477d7105decb123e3e80e0895ca115033f725010
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Release files / mcp_deepthinking-0.1.12-py3-none-any.whl
| Download URL | mcp_deepthinking-0.1.12-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9708c86f0ce8e46af241bc306d2d301d54655a5da113f0dc747ef963f9ed1c79
|
|
BLAKE2b-256 checksum How to use checksums |
91116676409e5e502e15dea49e23f381580daef14aa492b753007fa3089a8ad4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.14
|
Security for mcp-deepthinking 0.1.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.