MeshAI MCP Server
A standalone Model Context Protocol (MCP) server that enables Claude Code and other MCP-compatible tools to leverage MeshAI's multi-agent orchestration capabilities.
🚀 Features
- 🤖 Multi-Agent Workflows: 6 pre-configured workflows for code review, refactoring, debugging, documentation, and more
- 🧠 Intelligent Agent Selection: Automatically selects appropriate AI agents based on task content
- 🔧 Framework Agnostic: Works with agents built on LangChain, CrewAI, AutoGen, and other frameworks
- 🐋 Docker Ready: Full Docker support with development and production configurations
- 📦 Easy Installation: Available as PyPI package or Docker container
- 🔄 Fallback Protocol: Works without official MCP package using built-in implementation
📋 Quick Start
Option 1: Docker with stdio (Claude Code)
Option 2: HTTP Server Mode
Option 3: PyPI Installation
Option 4: Development Setup
🔧 Configuration
Environment Variables
Variable | Description | Default | Required |
---|---|---|---|
MESHAI_API_URL | MeshAI API endpoint | http://localhost:8080 | Yes |
MESHAI_API_KEY | API key for authentication | None | For stdio mode |
MESHAI_LOG_LEVEL | Logging level | INFO | No |
🔐 Authentication
For HTTP Mode:
- API Key Required: Pass via
Authorization: Bearer YOUR_API_KEY
header - Development Keys: Use
dev_
prefix for testing (e.g.,dev_test123
) - Rate Limiting: 100 requests/hour for development, configurable for production
For stdio Mode:
- Environment Variable: Set
MESHAI_API_KEY
for backend communication - No HTTP Auth: Authentication handled by Claude Code
Claude Code Integration
stdio Transport (Recommended):
HTTP Transport (For hosted deployments):
Local pip Installation:
🛠️ Available Workflows
1. Code Review (mesh_code_review
)
Comprehensive code review with security and best practices analysis.
- Agents: code-reviewer, security-analyzer, best-practices-advisor
2. Refactor & Optimize (mesh_refactor_optimize
)
Refactor code with performance optimization and test generation.
- Agents: code-optimizer, performance-analyzer, test-generator
3. Debug & Fix (mesh_debug_fix
)
Debug issues and generate tests for fixes.
- Agents: debugger-expert, log-analyzer, test-generator
4. Document & Explain (mesh_document_explain
)
Generate documentation and explanations with examples.
- Agents: doc-writer, code-explainer, example-generator
5. Architecture Review (mesh_architecture_review
)
Comprehensive architecture analysis and recommendations.
- Agents: system-architect, performance-analyst, security-auditor
6. Feature Development (mesh_feature_development
)
End-to-end feature development from design to testing.
- Agents: product-designer, senior-developer, test-engineer, doc-writer
🌐 HTTP API Usage
Starting HTTP Server
API Endpoints
Endpoint | Method | Description | Auth Required |
---|---|---|---|
/health | GET | Health check | No |
/v1/tools | GET | List available tools | Yes |
/v1/workflows | GET | List workflows | Yes |
/v1/resources | GET | List resources | Yes |
/v1/mcp | POST | Execute MCP request | Yes |
/v1/stats | GET | Usage statistics | Yes |
/docs | GET | API documentation | No |
Usage Examples
🐋 Docker Deployment
Development Setup
Production Considerations
For production deployment:
- Use proper API key management
- Set up rate limiting and monitoring
- Configure HTTPS/TLS termination
- Implement proper logging and metrics
- Consider using a reverse proxy (nginx, Traefik)
- Set resource limits and scaling policies
🧪 Development
Setup Development Environment
Code Quality
Building Docker Images
📚 Documentation
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Workflow
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Run the test suite
- Submit a pull request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
- GitHub Issues: Report bugs or request features
- Documentation: docs.meshai.dev
- Discord: Join our community
🗺️ Roadmap
- HTTP transport support for MCP
- WebSocket transport for real-time communication
- Custom workflow configuration via YAML
- Plugin system for custom agents
- Prometheus metrics integration
- Official MCP package integration when available
Built with ❤️ by the MeshAI Labs team.
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.
Enables Claude Code and other MCP-compatible tools to leverage MeshAI's multi-agent orchestration capabilities for code review, refactoring, debugging, documentation, architecture analysis, and feature development. Automatically selects appropriate AI agents based on task content and works with agents built on LangChain, CrewAI, AutoGen, and other frameworks.
Related MCP Servers
- -securityAlicense-qualityFacilitates integration with Claude Desktop to run AI agents and execute purchased actions without code, leveraging the Model Context Protocol framework.Last updated -1TypeScriptGPL 3.0
- -securityFlicense-qualityA Model Context Protocol server that enables Claude users to access specialized OpenAI agents (web search, file search, computer actions) and a multi-agent orchestrator through the MCP protocol.Last updated -9Python
- AsecurityAlicenseAqualityAn AI-powered Model Context Protocol server for Claude Code that provides code intelligence tools including codebase analysis, task management, component generation, and deployment configuration.Last updated -2314JavaScriptGPL 3.0
- AsecurityAlicenseAqualityConnects Blender to Claude AI through the Model Context Protocol, enabling AI-assisted 3D modeling, scene creation, and manipulation through natural language commands.Last updated -17PythonMIT License