MCP Catalogs
Home

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.

ai-llmproductivitydeveloper-tools
3
Forks
1
Open issues
8 mo ago
Last commit
2d ago
Indexed

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:

you:Cost-efficient LLM reasoning with reduced token usage
you:Enhanced accuracy for complex problem-solving tasks
you:Integration with Claude Desktop and Dive GUI for improved workflows
you:What is Chain-of-Draft (CoD) reasoning?
you:Which LLM providers are supported?

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 README
  • chain_of_draft_solve

    Solve a problem using Chain of Draft reasoning

  • math_solve

    Solve a math problem with Chain of Draft

  • code_solve

    Solve a coding problem with Chain of Draft

  • logic_solve

    Solve a logic problem with Chain of Draft

  • get_performance_stats

    Get performance statistics for Chain of Draft vs Chain of Thought

  • get_token_reduction

    Get token reduction statistics when using Chain of Draft

  • analyze_problem_complexity

    Analyze the complexity of a given problem

Comparable tools

mcp-cot-prompt-toolllm-tools-mcpmcp-reasoning-tool

Installation

Installation

Python Installation

  1. Clone the repository
  2. Install dependencies:

``bash pip install -r requirements.txt ``

  1. Configure API keys in .env file:

`` ANTHROPIC_API_KEY=your_api_key_here ``

  1. 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.