mcp-chain-of-draft-prompt-tool
by brendancopley·★ 19·Score 40
An MCP server implementing Chain-of-Draft (CoD) reasoning to enhance LLM responses with reduced token usage.
Overview
The MCP Chain-of-Draft Prompt Tool transforms standard prompts into Chain-of-Draft format for enhanced reasoning while reducing token usage by up to 92.4%. It supports multiple LLM providers including Anthropic Claude, OpenAI GPT models, Mistral AI, and local models via Ollama or custom endpoints. The tool automatically handles prompt transformation, LLM processing, and result formatting back into clear, concise responses while maintaining high accuracy.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this tool when you need enhanced reasoning quality with significantly reduced token costs, especially for tasks where CoT approaches are too expensive or slow.
When NOT to choose this
Don't choose this if you need extremely high accuracy for complex tasks where CoD's concise approach might lack sufficient detail, or if you prefer a complete out-of-box solution without configuration steps.
Tools this server exposes
7 tools extracted from the READMEchain_of_draft_solveSolve a problem using Chain of Draft reasoning
math_solveSolve a math problem with Chain of Draft
code_solveSolve a coding problem with Chain of Draft
logic_solveSolve a logic problem with Chain of Draft
get_performance_statsGet performance statistics for Chain of Draft vs Chain of Thought
get_token_reductionGet token reduction statistics when using Chain of Draft
analyze_problem_complexityAnalyze the complexity of a given problem
Comparable tools
Installation
Installation
Python Installation
- Clone the repository
- Install dependencies:
``bash pip install -r requirements.txt ``
- Configure API keys in
.envfile:
`` ANTHROPIC_API_KEY=your_api_key_here ``
- Run the server:
``bash python server.py ``
Claude Desktop Integration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"chain-of-draft-prompt-tool": {
"command": "python3",
"args": ["/absolute/path/to/cod/server.py"],
"env": {
"ANTHROPIC_API_KEY": "your_api_key_here"
}
}
}
}FAQ
- What is Chain-of-Draft (CoD) reasoning?
- Chain-of-Draft is a reasoning approach that uses very concise steps (typically 5 words or less) to maintain accuracy while significantly reducing token usage compared to traditional Chain-of-Thought (CoT).
- Which LLM providers are supported?
- The tool supports Anthropic Claude, OpenAI GPT models, Mistral AI, and local models through Ollama or custom endpoints with OpenAI-compatible APIs.
Compare mcp-chain-of-draft-prompt-tool with
Last updated · Auto-generated from public README + GitHub signals.