MCP server providing a 'deepthinking' tool powered by Groq LLMs for complex reasoning.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_deepthinking-0.1.12.tar.gz.
File metadata
- Download URL: mcp_deepthinking-0.1.12.tar.gz
- Upload date:
- Size: 427.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75dff7b97f9c84a273090a9a2694f744fb7c5fae00c65a7ee14c5dcc9002bc9c
|
|
| MD5 |
4452e0fa65860e8b9a47455de2c27645
|
|
| BLAKE2b-256 |
2e6dc6a6b845206b5d5f315c477d7105decb123e3e80e0895ca115033f725010
|
File details
Details for the file mcp_deepthinking-0.1.12-py3-none-any.whl.
File metadata
- Download URL: mcp_deepthinking-0.1.12-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9708c86f0ce8e46af241bc306d2d301d54655a5da113f0dc747ef963f9ed1c79
|
|
| MD5 |
4645fda6d024c4eaaef163b203b1c039
|
|
| BLAKE2b-256 |
91116676409e5e502e15dea49e23f381580daef14aa492b753007fa3089a8ad4
|