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, enabling iterative complexity building through prompt chaining.
š§ Core Concept: Prompt Chaining for Complexity
Instead of doing one analysis, chain operations to build increasingly sophisticated insights:
Each step builds on the last, creating layered, sophisticated thinking.
Features
Core Analytical Tools:
deconstruct_claim- Break down claims into componentscompare_positions- Multi-perspective ideological analysisapply_lens- Analyze through 9 frameworks (historical, economic, etc.)get_trace- Retrieve previous analysis plans
š Prompt Chaining Tools (NEW):
apply_operation- Apply 15+ analytical operations to any contentchain_analysis- Chain operations on previous LLM outputslist_available_operations- Browse all available operations
15+ Analytical Operations:
Deconstructive:
extract_assumptions- Find implicit/explicit assumptionsidentify_contradictions- Spot logical tensionsfind_fallacies- Detect rhetorical manipulation
Constructive:
steelman_argument- Build strongest versionfind_analogies- Identify relevant precedentsextract_principles- Derive universal patterns
Synthetic:
synthesize_perspectives- Merge viewpointselevate_abstraction- Raise to higher conceptsground_in_specifics- Add concrete examples
Meta-analytical:
identify_gaps- Find missing elementscheck_coherence- Verify logical consistencysuggest_next_step- Recommend next operation
Transformative:
convert_to_dialogue- Reframe as Socratic dialogueextract_counterfactuals- Generate what-if scenariosmap_dependencies- Chart logical dependencies
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:
š Example Workflows
Workflow 1: Deep Claim Analysis
Workflow 2: Multi-Lens Synthesis
Workflow 3: Iterative Refinement
š” Why This Approach?
Traditional Analysis: One-shot, limited depth
Chained Analysis: Iterative, building complexity
Benefits:
ā Build complexity incrementally - Each operation adds a layer
ā Provider-agnostic - Works with any LLM
ā No API keys needed - Server never calls external LLMs
ā Fully traceable - Every step logged with trace_id
ā Self-guided -
suggest_next_stepoperation recommends what to do nextā Composable - Mix with other MCP tools (Wikipedia, web search, etc.)
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