Analytical MCP Server
A Model Context Protocol (MCP) server that provides statistical analysis, decision-making, and logical reasoning tools.
Setup
Prerequisites
- Node.js >= 20.0.0
- EXA_API_KEY environment variable (for research features)
Installation
Option 1: Direct Installation
Option 2: Docker
Configuration
Direct Installation Configuration
- Copy
.env.example
to.env
- Add your EXA_API_KEY to
.env
- Add to Claude Desktop configuration:
Docker Configuration
- Copy
.env.example
to.env
- Add your EXA_API_KEY to
.env
- Add to Claude Desktop configuration:
Available Tools
Statistical Analysis
analytical:analyze_dataset
- Statistical analysis of datasetsanalytical:advanced_regression_analysis
- Linear, polynomial, and logistic regressionanalytical:hypothesis_testing
- Statistical hypothesis testing (t-tests, chi-square, ANOVA)analytical:data_visualization_generator
- Generate data visualization specifications
Decision Analysis
analytical:decision_analysis
- Multi-criteria decision analysis with weighted scoring
Logical Reasoning
analytical:logical_argument_analyzer
- Analyze argument structure and validityanalytical:logical_fallacy_detector
- Detect logical fallacies in textanalytical:perspective_shifter
- Generate alternative perspectives on problems
Research Verification
analytical:verify_research
- Cross-verify research claims from multiple sources
Observability & Metrics
The Analytical MCP Server includes built-in observability features for monitoring circuit breakers and cache performance.
Metrics Endpoint
When enabled, the server exposes metrics via HTTP on port 9090 (configurable):
http://localhost:9090/metrics
- Prometheus-style metricshttp://localhost:9090/metrics?format=json
- JSON format metricshttp://localhost:9090/health
- Health check endpointhttp://localhost:9090/
- Metrics server status page
Available Metrics
Circuit Breaker Metrics
analytical_mcp_circuit_breaker_state
- Current state (0=CLOSED, 1=HALF_OPEN, 2=OPEN)analytical_mcp_circuit_breaker_total_calls_total
- Total calls through circuit breakeranalytical_mcp_circuit_breaker_rejected_calls_total
- Rejected calls by circuit breakeranalytical_mcp_circuit_breaker_failure_count
- Current failure countanalytical_mcp_circuit_breaker_success_count
- Current success count
Cache Metrics
analytical_mcp_cache_hits_total
- Cache hits by namespaceanalytical_mcp_cache_misses_total
- Cache misses by namespaceanalytical_mcp_cache_puts_total
- Cache puts by namespaceanalytical_mcp_cache_evictions_total
- Cache evictions by namespaceanalytical_mcp_cache_size
- Current cache size by namespace
System Metrics
analytical_mcp_uptime_seconds
- Server uptime in secondsanalytical_mcp_memory_usage_bytes
- Memory usage (RSS, heap, external)analytical_mcp_cpu_usage_microseconds
- CPU time usage (user, system)
Configuration
Enable metrics by setting environment variables:
Usage Examples
Usage Examples
Dataset Analysis
Decision Analysis
Logical Analysis
Development
Testing
Scripts
npm run build
- Build TypeScript to JavaScriptnpm run watch
- Watch for changes and rebuildnpm run test
- Run Jest testsnpm run inspector
- Start MCP inspector for debugging
Project Structure
Tool Categories
Statistical Analysis
- Descriptive statistics (mean, median, standard deviation, quartiles)
- Correlation analysis
- Regression analysis (linear, polynomial, logistic)
- Hypothesis testing (t-tests, chi-square, ANOVA)
Decision Support
- Multi-criteria decision analysis
- Weighted scoring systems
- Trade-off analysis
- Risk assessment
Logical Reasoning
- Argument structure analysis
- Fallacy detection
- Perspective generation
- Critical thinking support
Research Integration
- Multi-source verification
- Fact extraction
- Consistency checking
- Research validation
Security & Privacy
- Processing is done locally
- Research features use Exa API (optional)
- No data is stored permanently
- Configurable caching with local-only storage
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/feature-name
) - Commit your changes (
git commit -m 'Add feature description'
) - Push to the branch (
git push origin feature/feature-name
) - Open a Pull Request
For detailed contribution guidelines, see docs/DEVELOPMENT.md.
Troubleshooting
Common Issues
JSON parsing errors: Ensure all logging goes to stderr, not stdout. The MCP protocol uses stdout for communication.
Tools not appearing: Verify the server is properly configured in Claude Desktop and restart the application.
Research features disabled: Check that EXA_API_KEY is set in your environment configuration.
Console output issues: The project uses a Logger class for all output. Utility scripts in the tools/ directory integrate with the Logger system for consistent formatting.
Debug Mode
Start the server with the MCP inspector:
Links
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
モデル コンテキスト プロトコル サーバーを通じて高度な分析、調査、自然言語処理機能を提供し、データセット分析、意思決定分析、エンティティ認識やファクト抽出などの強化された NLP 機能を可能にします。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for analyzing text documents, including counting words and characters. This server helps LLMs perform text analysis tasks by exposing simple document statistics functionality.Last updated -152510Apache 2.0
- AsecurityFlicenseAqualityA comprehensive Model Context Protocol server for advanced code analysis that provides tools for syntax analysis, dependency visualization, and AI-assisted development workflow support.Last updated -284
- -securityAlicense-qualityA Model Context Protocol server that provides network analysis tools for security professionals, enabling AI models like Claude to perform tasks such as ASN lookups, DNS analysis, WHOIS retrieval, and IP geolocation for security investigations.Last updated -1Apache 2.0
Gladia MCPofficial
-securityAlicense-qualityOfficial Model Context Protocol server that enables interaction with powerful Speech-to-Text and Audio Intelligence APIs, allowing clients like Claude Desktop to transcribe audio, analyze speech, translate content, and more.Last updated -2MIT License