Purpose
MCP Access Point is a lightweight protocol conversion gateway used to build a communication bridge between traditional HTTP services and MCP clients. With it, MCP clients can interact directly with existing HTTP services without making any modifications to the server-side interfaces. The project is built on Pingora, a high-performance gateway proxy library capable of supporting large-scale request proxy services.
Main Capabilities
- Protocol Conversion: Seamlessly converts between HTTP and MCP protocols.
- Zero-Intrusion Integration: Fully compatible with existing HTTP services, with no need to modify server-side code.
- Client Empowerment: Enables MCP clients to directly call standard HTTP services.
- Lightweight Proxy: Minimalist architecture that efficiently completes protocol conversion.
- Multi-Tenancy: Each tenant can have independent configurations and endpoints.
- Runtime Configuration Management: Supports dynamic configuration updates without restarting the service.
- Admin API: Provides RESTful interfaces for real-time configuration management.
Transport Protocols and Access Paths
Currently supports SSE and Streamable HTTP protocols:
- Streamable HTTP (stateless) 2025-03-26: all services use
ip:port/mcp; a single service usesip:port/api/{service_id}/mcp. - SSE 2024-11-05: all services use
ip:port/sse; a single service usesip:port/api/{service_id}/sse.
Usage: SSE uses IP:PORT/sse; Streamable HTTP uses IP:PORT/mcp.
Supported MCP Clients
- MCP Inspector
- Cursor Desktop
In this mode, even if the remote HTTP server itself does not support the SSE protocol, clients such as Cursor Desktop can still communicate with the remote HTTP server via SSE.
Usage
Basic Flow
The example configuration includes two services: Service 1 runs locally at 127.0.0.1:8090; Service 2 runs remotely at api.example.com. Through MCP Access Point, both services can be converted into MCP services, and clients communicate with both via the MCP protocol. The gateway automatically distinguishes MCP requests and forwards them to the corresponding backend services.
Configuration File
Use -c(or --config) to specify the configuration file path (config.yaml). This file defines the APIs that MCP Access Point needs to proxy and convert, supports multi-tenancy, and allows independent configuration of upstream services and routing rules for each MCP service. The main configuration items include:
mcps: List of MCP services.idis the unique service identifier, used to generate the access path;upstream_idassociates the upstream service ID;pathis the OpenAPI specification file path, supporting local files (such asconfig/openapi.json) and remote HTTP/HTTPS URLs (such ashttps://petstore.swagger.io/v2/swagger.json), and supporting JSON and YAML formats;routesis the custom routing configuration (optional);upstreamis the upstream service-specific configuration (optional).upstreams: Upstream service configuration.idis the upstream service ID;nodesis the backend node address and weight;typeis the load balancing algorithm (roundrobin/random/ip_hash);schemeis the upstream protocol (http/https);pass_hostis the HTTP Host header handling;upstream_hostis the override Host header value.
Running Methods
- Run with Docker.
- Run locally for a quick start.
- Build the Docker image (optional): clone the repository and build the image.
- Run the Docker container.
Environment variables:port Listen port for MCP Access Point (default: 8080).
Typical Use Cases
- Progressive Architecture Migration: Facilitate a gradual transition from HTTP to MCP.
- Hybrid Architecture Support: Reuse existing HTTP infrastructure within the MCP ecosystem.
- Protocol Compatibility: Build hybrid systems that support both protocols simultaneously.
Example scenario: When an MCP-based AI client needs to interface with legacy HTTP microservices, MCP Access Gateway acts as a middleware layer to achieve seamless protocol conversion.
Runtime Configuration Management
MCP Access Point supports dynamic configuration management through the RESTful Admin API, allowing configuration updates without restarting the service.
Admin API Features
- Real-time configuration updates: Instantly modify resources such as upstreams, services, and routes.
- Dependency validation: Automatically validate resource dependencies before changes.
- Batch operations: Atomically execute multiple configuration changes.
- Configuration validation: Support dry-run mode to validate changes before applying them.
- Resource statistics: Monitor and track configuration status.
Enabling the Admin API
In config.yaml add the corresponding configuration to enable the Admin API.
Admin API Endpoints
GET /admin/resources: Get resource summary and statistics.GET /admin/resources/{type}: List all resources of a specified type.GET /admin/resources/{type}/{id}: Get a specific resource.POST /admin/resources/{type}/{id}: Create a new resource.PUT /admin/resources/{type}/{id}: Update an existing resource.DELETE /admin/resources/{type}/{id}: Delete a resource.POST /admin/validate/{type}/{id}: Validate resource configuration.POST /admin/batch: Execute batch operations.POST /admin/reload/{type}: Reload a specific resource type.POST /admin/reload/config: Reload the complete configuration from a file (defaultconfig.yaml). Optional JSON request body:{ "config_path": "path/to/config.yaml" }.
Resource types include:upstreams、services、routes、global_rules、mcp_services、ssls.
Admin Dashboard UI
Route GET /admin provides a built-in dashboard (static/admin_dashboard.html). Displayed in order: 1)mcp_services、2)ssls、3)global_rules、4)routes、5)upstreams、6)services. Each card shows the count and the formatted last_updatedfrom the API response.
Testing the Admin API
You can use the provided test scripts to verify Admin API functionality. For detailed documentation, see RUNTIME_CONFIG_API.md.
Limitations
The materials do not provide explicit explanations of additional feature limitations, fees, pricing, or platform requirements.