Skip to main content

mcpport — A lightweight gateway & registry for Model Context Protocol (MCP), enabling standardized connectivity for AI applications.

Project description

mcpport

mcpport — A lightweight gateway & registry for Model Context Protocol (MCP), enabling standardized connectivity for AI applications.

Quick Start

  1. Start your MCP Gateway
uvx mcpport gateway

It will start the gateway on port 8765 by default. And the common access points are:

  • ws://localhost:8765/mcp/register is the registration endpoint.
  • http://localhost:8765/sse is the event stream endpoint(SSE).
  • http://localhost:8765/messages is the message endpoint(HTTP).
  1. Register your MCP Server to the Gateway
uvx mcpport register \
--stdio "npx -y @modelcontextprotocol/server-filesystem ./" \
--gateway-url="ws://localhost:8765/mcp/register" \
--server-name "file"

It will register a MCP server named file to the gateway. The server is a simple file system server, which is implemented by @modelcontextprotocol/server-filesystem.

Advanced Usage

  1. Start Your MCP Gateway With ipv6 Support
uvx mcpport gateway --host "::" --ipv6

Other options are also available, you can use uvx mcpport gateway --help to get more information.

There are some options for the gateway:

  • --host is the host of the gateway.
  • --port is the port of the gateway, default is 8765.
  • --ipv6 is to enable ipv6 support, default is false.
  • --log-level is the log level of the gateway, default is INFO.
  • --timeout-rpc is the timeout of communication with the MCP server, default is 10s.
  • --timeout-run-tool is the timeout to run the tool, default is 120s.
  • --sse-path is the path of the event stream endpoint, default is /sse.
  • --messages-path is the path of the message endpoint, default is /messages.

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

mcpport-0.1.2.tar.gz (60.1 kB view details)

Uploaded Source

Built Distribution

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

mcpport-0.1.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file mcpport-0.1.2.tar.gz.

File metadata

  • Download URL: mcpport-0.1.2.tar.gz
  • Upload date:
  • Size: 60.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for mcpport-0.1.2.tar.gz
Algorithm Hash digest
SHA256 726e1ba34f4b7914791167600b9d878dc2d6bb8d4ca4a7b55c1d0464cf1ce425
MD5 fb3bba98624d3eb538c989e99358c1f7
BLAKE2b-256 0263bbd74c8f73dda2a67d7fd82ae8c75a017c819edc5378b037bfeec2487ae2

See more details on using hashes here.

File details

Details for the file mcpport-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mcpport-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for mcpport-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 698b5cd8bd3c5ed9655282d6165fc96d41d733b812cf52d5659ce7df2b24c02e
MD5 b20665cf16cac0a4e215b1e5c3d3d7d6
BLAKE2b-256 270ac52ba72f3738942bfa287840fdfdacecccc6b3f0bfb09a6d322a02978881

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