Skip to main content

Bidirectional bridge between MCP servers and the mesh network

Project description

mesh-mcp-bridge

Bidirectional bridge between MCP servers and the MARS protocol network. It publishes MCP server capabilities as mesh descriptors and exposes mesh capabilities to MCP-compatible agents as standard MCP tools.

Install

pip install mesh-mcp-bridge

Live Network

Connect your gateway to any MARS hub:

Hub Address Location
us-east 5.161.53.251:4433 Ashburn, VA
us-west 5.78.197.92:4433 Hillsboro, OR
eu-central 46.225.55.16:4433 Nuremberg, DE
ap-southeast 5.223.69.128:4433 Singapore
# Start a gateway connected to the live mesh
./target/release/mesh-gateway --seed 5.161.53.251:4433 --listen 0.0.0.0:3000

Usage

Publish MCP server tools to the mesh

mesh-mcp-bridge publish \
  --gateway http://localhost:3000 \
  --mcp-server "python my_mcp_server.py" \
  --name "my-tools"

This connects to the MCP server, lists its tools, and registers each one as a mesh descriptor (type mcp/tool/{tool_name}).

Discover mesh capabilities via MCP

mesh-mcp-bridge serve \
  --gateway http://localhost:3000 \
  --transport stdio

Or over HTTP:

mesh-mcp-bridge serve \
  --gateway http://localhost:3000 \
  --transport http \
  --port 8080

Any MCP-compatible agent can then connect to this server and see all mcp/tool/* descriptors on the mesh as standard MCP tools.

Architecture

┌──────────────┐         ┌──────────────────┐         ┌──────────────┐
│  MCP Server  │◄───────►│  mesh-mcp-bridge │◄───────►│ Mesh Gateway │
│  (tools)     │  stdio  │                  │  HTTP   │  /v1/publish │
└──────────────┘         │  publish mode:   │         │  /v1/discover│
                         │  MCP → mesh      │         └──────┬───────┘
                         │                  │                │
                         │  serve mode:     │                ▼
┌──────────────┐         │  mesh → MCP      │         ┌──────────────┐
│  MCP Client  │◄───────►│                  │         │  Mesh DHT    │
│  (agent)     │ stdio/  └──────────────────┘         │  Network     │
└──────────────┘  HTTP                                └──────────────┘

Publish mode — scans an MCP server's tool listing and registers each tool as a mesh descriptor so any mesh participant can discover it.

Serve mode — queries the mesh for mcp/tool/* descriptors and presents them as MCP tools. When an agent invokes a tool the bridge forwards the call to the endpoint recorded in the descriptor.

Links

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

mesh_mcp_bridge-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

mesh_mcp_bridge-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mesh_mcp_bridge-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for mesh_mcp_bridge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 adeb6a49034686f3a6a16fe848465117bd8c628a158e4f1da005f9ebed8317e3
MD5 260601898824505ada221a8759134ae8
BLAKE2b-256 983098a3784404cdf0558942e7a502af25da6936c9bd4944c309f8d56c758514

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mesh_mcp_bridge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82fde96670f5e57b36d24e20238cd7fc7a259f0b24bd4881911f849b0b4c3614
MD5 705bb6aa4e1b6b4d5ba843beb0b6269a
BLAKE2b-256 a976151b849f9ef508e3df188a25ce64dfa6342f62d8bb42c024ffb5f1514b7e

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