mcp-mesh
Enables invocation of AWS Lambda functions as MCP tools through dynamic schema ingestion.
Enables querying GraphQL APIs as MCP tools through dynamic schema ingestion.
Enables using OpenAPI/Swagger REST endpoints as MCP tools through dynamic schema ingestion.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-meshUse the GraphQL API to fetch the list of products"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP-Mesh ππ
Universal Model Context Protocol (MCP) Router & Gateway Adapter with ISO/IEC 42001 AI Governance & Modern Web Dashboard
MCP-Mesh is an enterprise-grade AI Gateway, Protocol Adapter, and Smart Tool Router built for the Model Context Protocol (MCP). It bridges external legacy & cloud infrastructures (OpenAPI/REST, GraphQL, AWS Lambda) with LLM Agents, enforcing ISO/IEC 42001 AI Governance, Role-Based Access Control (RBAC), Automatic PII Redaction, Semantic Tool Routing, and a Modern React-based Web Dashboard UI.
π Key Features
π Modern Web Dashboard UI: High-performance React 18 interface with live telemetry monitoring, trace inspection, interactive role preview, adapter management, and instant Light/Dark mode.
π Universal Protocol Adapters: Dynamic schema ingestion for OpenAPI (Swagger 3.0), GraphQL queries, and AWS Lambda functionsβconverting them into instantly discoverable MCP tools on the fly.
π‘οΈ ISO/IEC 42001 AI Governance: Automated AI System Risk Assessment engine evaluating operation severity (Low, Medium, High, Critical), parameter payload complexity, and prompt/SQL injection protection.
π§ Smart Semantic Tool Router: In-memory TF-IDF & Cosine Similarity vector search index that dynamically exposes only top relevant tools to the LLM based on query context, preventing context window bloat.
π Enterprise Security & PII Redaction: Automatic real-time detection and masking of emails, credit cards, SSNs, phone numbers, and API credentials in both request arguments and response payloads (
[REDACTED]).π OAuth2 JWT & RBAC Enforcement: Role-Based Access Control matrix (
admin,developer,analyst,guest) restricting tool discovery and execution based on agent identity.β‘ Telemetry, Resilience & Replay: Complete JSON-RPC execution audit logging, circuit breaking for downstream service isolation, and deterministic trace replay (
/admin/telemetry/replay/{trace_id}).π Dual Transport Modes: Native support for both stdio (for local IDEs like Antigravity & Claude Desktop) and HTTP REST/SSE (for distributed microservices).
Related MCP server: Peta Core
π System Architecture
+------------------------------+
| LLM Agent / Desktop IDE |
+------------------------------+
|
(JSON-RPC 2.0)
|
v
+--------------------------------------------------------------------------------------------------+
| MCP-MESH GATEWAY |
| |
| +-------------------+ +----------------------+ +-------------------+ +--------------+ |
| | JWT & Agent Auth | -> | RBAC Scoping Engine | -> | ISO 42001 Engine | -> | PII Masker | |
| +-------------------+ +----------------------+ +-------------------+ +--------------+ |
| |
| +------------------------------------------------------------------------------------------+ |
| | Web Dashboard UI (http://localhost:8000/dashboard) | |
| +------------------------------------------------------------------------------------------+ |
| |
| +--------------------------+ |
| | Smart Semantic Router | |
| | (TF-IDF Vector Index) | |
| +--------------------------+ |
| | |
| +--------------------------+ |
| | Central Tool Registry | |
| +--------------------------+ |
| | |
+--------------------------------------------------|-----------------------------------------------+
|
+--------------------------+--------------------------+
| | |
v v v
+--------------------+ +-------------------+ +-------------------+
| OpenAPI Adapter | | GraphQL Adapter | | Lambda Adapter |
+--------------------+ +-------------------+ +-------------------+
| | |
v v v
[ Upstream REST ] [ Upstream GraphQL ] [ AWS Lambda Functions ]π» Web Dashboard UI Overview
Access the live dashboard at http://localhost:8000/dashboard (or http://localhost:8000/).
Features:
π‘ Telemetry & ISO 42001 Audit Stream: Live execution log with status filter pills (
ALL,SUCCESS,BLOCKED_RBAC,BLOCKED_ISO42001), JSON payload inspector, and 1-click Trace Replay.π Dynamic Adapters Hub: Manage connected OpenAPI, GraphQL, and AWS Lambda adapters with interactive modal registration forms.
π§ Smart Router & Security Playground: Test bench to simulate LLM user prompts and inspect tool rankings and role permissions live.
π Light / Dark Mode System: Custom glassmorphism design with seamless theme toggling.
π¦ Installation & Setup
Prerequisites
Python 3.10 or higher
Install from Source
git clone https://github.com/mcp-mesh/mcp-mesh.git
cd mcp-mesh
pip install -e .π Quick Start & Launch Modes
Mode 1: HTTP REST Server & Web Dashboard Mode
Launch the Gateway server and Web UI:
# Option A: Using CLI command (if installed via pip install -e .)
mcp-mesh start --host 0.0.0.0 --port 8000
# Option B: Direct Python execution
python -m uvicorn mcp_mesh.api.app:app --host 0.0.0.0 --port 8000 --reloadπ Open browser at http://localhost:8000/dashboard.
Mode 2: Local Stdio Transport Mode
Run in stdio mode for local IDE integration (Antigravity IDE, Claude Desktop):
mcp-mesh stdio
# OR
python -m mcp_mesh.cli stdioπ§ͺ Live Interactive Demo Script
Run the automated live demonstration script to populate telemetry traces and test adapter registration:
python run_example.pyThis script automatically:
Registers the Swagger Petstore OpenAPI endpoints into MCP-Mesh as tools.
Performs contextual tool discovery (
tools/list) using the Smart Vector Router.Executes a tool call with customer data and displays real-time PII Redaction.
Triggers an ISO/IEC 42001 Risk Interception blocking a delete operation.
βοΈ Configuration Reference
Configure MCP-Mesh via environment variables (or .env file):
Variable | Default Value | Description |
|
| Gateway HTTP server port |
|
| JWT token signing key |
|
| Enforce JWT token authentication |
|
| Enable ISO 42001 risk evaluation & policy enforcement |
|
| Enable automatic PII masking in inputs/outputs |
|
| Text label substituted for PII data |
|
| Max tools returned by smart router per query |
|
| Telemetry database connection URI |
π Protocol & API Usage Examples
1. Dynamic OpenAPI Adapter Registration
Register a live OpenAPI endpoint or specification:
POST /admin/adapters/openapi
Content-Type: application/json
{
"name": "petstore",
"spec_source": "https://petstore.swagger.io/v2/swagger.json"
}2. Listing Tools with Contextual Semantic Filtering
Request tools relevant to a specific user prompt context:
POST /mcp
Content-Type: application/json
X-Query-Prompt: "I need to look up pet order details and inventory"
Authorization: Bearer <YOUR_JWT_TOKEN>
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}3. Calling an MCP Tool with Governance & PII Masking
Execute a tool through the MCP-Mesh gateway:
POST /mcp
Content-Type: application/json
Authorization: Bearer <YOUR_JWT_TOKEN>
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "petstore_getOrderById",
"arguments": {
"orderId": 5
}
}
}π Security & AI Governance Details
Role-Based Access Control (RBAC)
Role | Permitted Actions / Tool Patterns |
admin | Full access to all tools ( |
developer |
|
analyst | Read-only operations ( |
guest | Discovery only ( |
ISO/IEC 42001 Risk Levels
LOW: Read-only operations and non-mutating queries.
MEDIUM: Low-impact state modifications (drafting, local cache updates).
HIGH: Destructive updates or complex writes (restricted for untrusted roles).
CRITICAL: High-risk keywords (
delete,drop,truncate,shell,exec) requiringadminorsupervisorroles.
π§ͺ Running Unit Tests
Execute the comprehensive test suite:
python -m unittest discover -s testsπ License
This project is licensed under the MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA production-ready unified entry point for AI agents that implements the Model Context Protocol (MCP). It provides a secure gateway with rate limiting, authentication, and observability for managing and proxying requests to multiple downstream APIs.Last updatedMIT
- Alicense-qualityCmaintenanceA secure MCP gateway for enterprise AI tool execution, enabling governed invocation of business tools with authentication, RBAC, audit logging, PII redaction, and async processing.Last updatedApache 2.0
- Alicense-qualityCmaintenanceA secure tool-execution plane for agentic AI that enforces JWT authentication, rate limiting, prompt-injection inspection, and audit logging, while ingesting downstream OpenAPI endpoints as MCP tools.Last updatedMIT
Related MCP Connectors
Enterprise AI Control Plane: governance, guardrails, spend tracking, compliance & smart routing.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors β no code.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sahil-Chavan96/mcp-mesh'
If you have feedback or need assistance with the MCP directory API, please join our Discord server