Skip to main content

Composable tool mesh for MCP ecosystems

Project description

MCP Fabric

CI Python License Ruff Type checked Contributor Covenant

A control plane for AI agents โ€” register MCP servers, normalize tools into capabilities, control access with policies and trust levels, require human approval for sensitive actions, and audit everything.

MCP solves one important problem: a standard interface for AI tools and data. It does not solve the next problem that appears immediately after success: tool ecosystem sprawl.

MCP Fabric is that missing layer โ€” the dashboard where platform teams connect, organize, control, review, and monitor every tool their agents use.

The Problem

Once a team adds multiple MCP servers, several hard questions emerge:

  • Which tools should be exposed to which agents?
  • How should overlapping capabilities be described?
  • What trust level should be assigned to each server?
  • Which agents get access to which tools โ€” and who needs to approve?
  • How should a platform team audit and govern usage across the whole tool ecosystem?

Quick Start

# Clone and start the full stack (Docker)
git clone https://github.com/deghosal-2026/mcp-fabric.git
cd mcp-fabric
docker-compose up -d

# Or run locally without Docker:
poetry install && cd ui && npm install && cd ..
poetry run uvicorn api.main:app --reload &
cd ui && npm run dev
Service URL
API http://localhost:8000
API Docs (Swagger) http://localhost:8000/docs
Admin UI http://localhost:3000
Metrics http://localhost:8000/v1/metrics
Health http://localhost:8000/health

Documentation

Guide Description
๐Ÿ‘ค Admin UI User Guide Walkthrough of all UI pages with screenshots
๐Ÿ“„ Product Requirements (PRD) 29 user journeys, persona definitions, product scope
๐Ÿ“ Technical Specification Full architecture, DB schema, API contract, OPA policies
๐Ÿ—๏ธ Architecture System design, data flow, component interfaces
๐Ÿงช UI Test Plan UI test strategy: 145 vitest tests
๐Ÿงช Docker Test Plan E2E test strategy: Playwright + curl + 19 screenshots
๐Ÿ› ๏ธ Development Guide Local setup, testing, migrations, Docker Compose
๐Ÿš€ Deployment Guide Docker Compose deploy, env vars, backup/restore, blue-green upgrade
โš™๏ธ Configuration Reference All 25 env vars with defaults, feature flags, production checklist
๐Ÿ“Š Monitoring Guide Prometheus metrics, Grafana dashboard, Alertmanager, OTel tracing
๐Ÿ”’ Security Guide Auth model, password policy, MFA, token lifecycle, RBAC, audit
โ“ Troubleshooting Guide Common issues: API, health checks, OPA, Redis, CORS, DB migrations
๐Ÿ“ Changelog Version history and release notes

What MCP Fabric Does

MCP Fabric is a control plane for AI agents. It sits between your MCP servers and the agents that consume them, giving platform teams a single dashboard to manage the full lifecycle:

1. Register servers โ†’ 2. Define capabilities โ†’ 3. Set policies
โ†’ 4. Create agent classes + tokens โ†’ 5. Bundle into packs
โ†’ 6. Assign packs โ†’ 7. Approve gated actions โ†’ 8. Audit everything
Layer What It Provides
Server Registry Register, inspect, and monitor MCP servers. Auto-discover tools from /tools/list. Filter by health, trust, team.
Capability Catalog Normalize raw MCP tools into meaningful capabilities (e.g. deployment:promote). Deprecate with configurable grace periods.
OPA Policy Engine Deploy Rego policies that govern access decisions โ€” trust hierarchy, agent class requirements, namespace isolation.
Agent Classes + Tokens Define agent types (agent:developer) and issue identity tokens (fcp_****). Token shown once at creation.
Capability Packs Bundle capabilities and assign them to agent classes. Control which capabilities each class can access.
Approvals Human-in-the-loop for sensitive capabilities. Review requests with full context (agent, capability, server, parameters).
Audit Log Immutable record of every action โ€” capability requests, policy changes, server events. Export for compliance (SOC2, SOX).
Alerts Surface operational issues: server degradation, unreachable servers, unreviewed servers, denial spikes.
Trust Posture Per-agent-class trust levels with color-coded cards. Optimistic UI updates with automatic rollback on error.
Admin User Management RBAC with Admin/Editor/Viewer roles. MFA enforcement.

Architecture

Agent โ†’ MCP Fabric API โ†’ Registry โ†’ OPA Policy โ†’ Approval Gate โ†’ Target MCP Server
                            โ†“
                      Audit Pipeline
                            โ†“
                     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                     โ”‚  Admin UI    โ”‚
                     โ”‚  (Dashboard, โ”‚
                     โ”‚   Config,    โ”‚
                     โ”‚   Monitor)   โ”‚
                     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

The Admin UI is the control plane. Platform teams use it to register servers, define capabilities, set policies, manage agent classes, bundle packs, review approvals, monitor alerts, and audit activity โ€” all from a single dashboard.

Stack

  • API: FastAPI
  • Metadata store: PostgreSQL
  • Cache: Redis
  • Policy engine: OPA (Open Policy Agent) Rego policies
  • Telemetry: OpenTelemetry, Tempo, Prometheus, Grafana
  • UI: React
  • Local dev: Docker Compose

Everything runs locally. No enterprise dependencies required.

Roadmap

v0.1.0 โ€” Current:

  • MCP server registry with auto-discovery of tools
  • Normalized capability catalog with deprecation lifecycle
  • OPA Rego policy engine for access decisions
  • Agent classes with identity token management
  • Capability packs โ€” bundle and assign to agent classes
  • Human-in-the-loop approvals for gated capabilities
  • Audit log with event filtering and JSON export
  • Trust posture dashboard with per-class trust levels
  • Operational alerts for server health and security issues
  • Admin user management with RBAC (Admin/Editor/Viewer) and MFA
  • Dashboard with stat cards and recent activity panels
  • 474 automated tests (backend, UI, OPA, E2E)

v0.2.0 โ€” Planned:

  • Advanced routing engine (health/latency/fallback-aware)
  • Conflict detection across similar tools
  • Capability-to-tool mapping UI from the catalog

v0.3.0 โ€” Planned:

  • Multi-tenant scopes and namespace isolation
  • Analytics and usage heatmaps
  • Webhook integrations for external tooling

v0.4.0 โ€” Planned:

  • Performance benchmarks and caching improvements
  • Reference integrations with popular OSS MCP servers
  • API versioning and SDK

Test Status

Suite Tests Status
Backend unit (services, middleware, errors) 295 โœ… Passing
Backend integration (HTTP routes) 12 โœ… Passing
OPA policy (Rego) 12 โœ… Passing
UI unit/integration (Vitest) 128 โœ… Passing
UI E2E + screenshots (Playwright) 21 โœ… Passing
Docker Compose E2E (curl) 6 โœ… Scripts ready
Total 474
make test        # Backend unit tests
make test-unit   # Unit tests only
cd ui && npm test  # UI tests
make opa-test    # OPA policy tests

Who It's For

  • Platform teams managing multiple MCP servers
  • Advanced agent builders who need governed tool access
  • Developer experience teams building internal AI tooling platforms
  • OSS builders creating reusable MCP ecosystems

License

MIT


See ROADMAP, GOVERNANCE, and CONTRIBUTING for project direction, governance, and how to contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_fabric_toolmesh-0.1.0.tar.gz (151.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_fabric_toolmesh-0.1.0-py3-none-any.whl (184.3 kB view details)

Uploaded Python 3

File details

Details for the file mcp_fabric_toolmesh-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_fabric_toolmesh-0.1.0.tar.gz
  • Upload date:
  • Size: 151.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for mcp_fabric_toolmesh-0.1.0.tar.gz
Algorithm Hash digest
SHA256 45bf0888ebfbb4b6c675b8706e42dea5a54c9e22fd173c0d211552f1e50bef8f
MD5 9a3e4ad24c5091c90f6208e3feb874e8
BLAKE2b-256 6612bbb24a18f69b7f22049a62160e8e211ea785b84c96a665cba80b6a22fc27

See more details on using hashes here.

File details

Details for the file mcp_fabric_toolmesh-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_fabric_toolmesh-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2df2bd610dfc08301cc63d6ff428d6a7aad840497f6067f0ecbbac13287e22fd
MD5 e7be38b53770ff30d800707aedd5c419
BLAKE2b-256 452433d8518fadd720c8913e8aaf3d8963208808b398f1a9b674700a4fe84021

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page