analysis-mcp
A FastMCP server for critical thinking and multi-perspective analysis of current affairs.
Uses the LLM-Orchestrator Pattern: Tools return structured prompts for the calling LLM to execute, ensuring provider-agnostic operation and full transparency.
🧠 How It Works
You ask the LLM to analyze something
LLM calls MCP tool to get a structured analysis plan
Tool returns
{trace_id, outline, next_prompt}LLM executes the
next_promptusing its own modelResult combines tool planning + LLM generation
This pattern means:
✅ Works with any LLM provider (Claude, GPT, local models)
✅ No API keys needed in the MCP server
✅ Full traceability via
trace_id✅ Composable with other MCP tools
Features
Cognitive Tools:
deconstruct_claim- Plan a claim deconstruction (returns structured prompt)compare_positions- Plan multi-perspective analysis (returns structured prompt)apply_lens- Plan lens-based analysis through 9 analytical frameworksget_trace- Retrieve previous analysis plans for iteration
9 Analytical Lenses: historical, economic, geopolitical, psychological, technological, sociocultural, philosophical, systems, media
Quick Start with Claude Desktop
Install via uvx (recommended):
Edit your Claude Desktop config file:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add this to the mcpServers section:
Restart Claude Desktop
Verify installation: Look for the 🔌 icon in Claude Desktop showing the analysis-mcp server is connected
Alternative: Local Development Installation
If you want to modify the code or run it locally:
For local development in Claude Desktop, update your config to point to the local path:
Usage Examples
Once connected to Claude Desktop, you can use these tools:
Example 1: Deconstruct a claim
The tool returns:
Claude then executes the next_prompt and provides the full analysis.
Example 2: Compare perspectives
Example 3: Apply analytical lens
Example 4: Recall previous analysis
🔄 LLM-Orchestrator Pattern Details
Each tool is a prompt compiler, not a generator:
Why this pattern?
Server never calls external APIs (no cost, no keys)
Uses the calling LLM's provider & model
Deterministic planning + flexible generation
Easy to trace, log, and iterate
Composable with other tools
Available Lenses
historical - Compare to precedents and patterns
economic - Analyze resource flows and incentives
geopolitical - Examine power balances and strategy
psychological - Identify biases and manipulation
technological - Explore tech's role and impact
sociocultural - Analyze identity and narratives
philosophical - Apply ethical frameworks
systems - Map feedback loops and leverage points
media - Deconstruct framing and agenda-setting
Trace Storage
Analysis plans are logged to ~/.analysis_mcp/traces/ as JSON files. Each trace contains:
trace_id- Unique identifiertool- Which tool was calledinput- Original parametersoutline- Structured analysis plannext_prompt- The prompt for LLM executiontimestamp- When it was created
Use get_trace(trace_id) to retrieve any previous analysis plan.
Troubleshooting
Server not connecting?
Verify
uvxis installed:pip install uvxCheck Claude Desktop logs (Help → View Logs)
Ensure your config JSON is valid
Tools not appearing?
Restart Claude Desktop after config changes
Check the 🔌 icon shows "analysis-mcp" as connected
Contributing
Pull requests welcome! Please run tests before submitting:
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Provides cognitive tools for critical thinking and multi-perspective analysis of current affairs through structured prompts, including claim deconstruction, perspective comparison, and analysis through 9 analytical lenses (historical, economic, geopolitical, etc.).