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
ux 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.1.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.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcpport-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 1852600e3be4a2cd5b19c9d49ea40779a14d6b7f4db24d43f0c150d965407e05
MD5 a59b6738a656ebc36f755aaba7772074
BLAKE2b-256 0a2a031b042af0a4c2b8c2356cbca8f1d43031dcf5fd8580dab3ddc8446c0ad8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mcpport-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56bc26db4d0ccdff94ee461bc83da0b4265a574bd7820312cb7b39765f815adb
MD5 bc98bcb88b91493400325480b3b9fa8b
BLAKE2b-256 21c19d3c1797529a06b30030bda4ac1a22613d1ecabe672c93ffd30c0f81b2b0

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