Skip to main content

MCP Fabric

CI Python PyPI 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?

What's New in v0.3.0 — Schema-Digest Security

Full changelog: docs/CHANGELOG.md

v0.3.0 brings Schema-Digest Mappings — a security layer that detects when server tool schemas drift from their capability mappings. When a re-inspected server shows a changed tool schema, affected mappings are automatically marked stale and excluded from routing until an admin reviews and approves the change.

Key features:

  • Schema-digest computation — SHA-256 hash of (tool_name + input_schema + output_schema) stored on each mapping at creation time
  • Drift detection on re-inspect — schema changes automatically mark affected mappings as stale
  • Digest-bound routing — only active mappings with matching digests are considered for routing
  • OPA policy gatesdeny_stale_mapping and untrusted_write rules in Rego policies
  • Admin review UI — Pending Reviews page with approve/reject workflow and audit trail
  • Trust Posture integration — "Pending Reviews" button linking to the review page

Key resources:

Quick Start

# Install from PyPI
pip install mcp-fabric-toolmesh

# 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.3.0 — Current:

  • Schema-digest mappings: detect tool drift, mark stale, block routing until re-approved
  • OPA deny rules: deny_stale_mapping, untrusted_write, raw_context for audit
  • Admin review UI: approve/reject stale mappings with audit trail
  • 326 automated tests (backend, UI, OPA, E2E) + 31 OPA policy tests

v0.4.0 — Planned:

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

GA (v1.0.0) — Planned:

  • Stabilization, security audit, production hardening, and enterprise features

Test Status

| Suite | Tests | Status | |---|---|---|---|---| | Backend unit (services, middleware, errors, models) | 326 | ✅ Passing | | OPA policy (Rego) | 31 | ✅ Passing | | UI unit/integration (Vitest) | 128 | ✅ Passing | | UI E2E + screenshots (Playwright) | 75 | ✅ Passing | | Docker Compose E2E (curl) | 6 | ✅ Scripts ready | | Total | 566 | |

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.

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.3.0.tar.gz (167.2 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.3.0-py3-none-any.whl (202.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_fabric_toolmesh-0.3.0.tar.gz
  • Upload date:
  • Size: 167.2 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.3.0.tar.gz
Algorithm Hash digest
SHA256 15bd53f9042687d533fd7a06180e1c793792d18d66e796308b1e0c7e561ebdd0
MD5 5bd6d79ff6a50d8a2a530a03d8b3c423
BLAKE2b-256 551971d73c70e5205804fe083d07c28cf976d68cee1ee730e95ab658fb22b4b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_fabric_toolmesh-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34afd7194f28f23714f3f3b787be99edf2289b799ef57b3a03a799aca38ef7d6
MD5 5b32c95d6bdded134486e8a8b7bfc981
BLAKE2b-256 82750ba6cfabaa0e6f269a28e6a87fed4209078fcdcb430fd7201b6128fdd7a3

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.0

2 files

This release

0.3.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page