MCP Deployment Architecture

MCP architectural deployment notes, periodically updated

About This Project

MCP-Deployment-Architecture is a documentation repository that describes the current shape of a Model Context Protocol deployment used in an agentic AI setup, along with the reasoning behind its design decisions and a record of its earlier iterations. It is written in Typst and is updated periodically as MCP and the surrounding tooling evolve. The architecture centres on a primary MCP aggregator running on a home LAN, implemented with MCP Jungle, which connects to SaaS APIs and infrastructure services, while remote sites may run their own gateways that federate into the primary. Other components include MinIO for S3-compatible file staging with presigned URLs and retention policies, OpenViking as a skill and procedure server, and a separate toolbox meta-MCP that supports deferred tool discovery so that large tool catalogues do not consume excessive model context. Networking relies on a WireGuard-based mesh for owned devices, with public tunnel ingress retained for third-party clients that cannot join the mesh or send custom authentication headers.

The repository addresses recurring problems in MCP deployments, including the lack of a binary channel in MCP's JSON-RPC transport, authentication and token management across many providers and machines, tool discovery across dozens of servers, and the trade-off between routing through an aggregator and connecting directly to a server. It documents these trade-offs explicitly, including where a direct point-to-point connection is preferred over aggregation, such as for MCPs requiring local device or audio hardware access. The stated end goal is a deployment decoupled from any single agentic framework, so that the servers and supporting services can be reused from any compliant client.

This repository may be of interest to engineers designing or operating self-hosted MCP infrastructure, particularly those dealing with multi-site deployments, context-efficient tool exposure, or authentication for remote MCP servers. It also serves as a reference for anyone evaluating how aggregation, progressive discovery, and procedural knowledge layers can be combined in an agentic AI environment.

Project Details

Tags

mcpmcp-gatewaymodel-context-protocol

Explore More Projects