Skip to main content

Port MCP Gateway

A comprehensive gateway for interacting with Port.io through the PyPort SDK using the Model Context Protocol (MCP).

Installation

pip install port-mcp-gateway

Quick Start

  1. Set up your Port.io credentials:
# Create a .env file
echo "PORT_CLIENT_ID=your_client_id" > .env
echo "PORT_CLIENT_SECRET=your_client_secret" >> .env
  1. Start the gateway:
port-mcp-gateway
  1. Access the gateway at http://localhost:8000

Command Line Options

usage: port-mcp-gateway [-h] [--host HOST] [--port PORT] [--reload]
                        [--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
                        [--log-file LOG_FILE] [--env-file ENV_FILE]

Port MCP Gateway

options:
  -h, --help            show this help message and exit
  --host HOST           Host to bind the server to
  --port PORT           Port to bind the server to
  --reload              Enable auto-reload for development
  --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Logging level
  --log-file LOG_FILE   Log file path
  --env-file ENV_FILE   Environment file path

Using with Cursor or Claude

For Cursor

import requests
import json

def get_blueprints():
    response = requests.post(
        "http://localhost:8000/mcp/tools/get_blueprints",
        headers={"Content-Type": "application/json"},
        data=json.dumps({"name": "get_blueprints", "input": {}})
    )
    return response.json()

# Use the function
blueprints = get_blueprints()
print(blueprints)

For Claude (via Augment Code Agent)

  1. Configure the MCP server in Augment Code Agent:

    • Go to Augment Code Agent settings
    • Navigate to "External Tools" or "Integrations" section
    • Add an MCP Server integration with these details:
      • Integration Type: MCP Server
      • Name: Port.io Gateway
      • Command: npx -y @augment/mcp-client connect http://localhost:8000/mcp
  2. Use the gateway in conversations with Claude:

    • "Can you use the MCP server to get a list of all my blueprints in Port.io?"
    • "Please use the get_blueprints tool to show me my Port.io blueprints."

Documentation

For full documentation, visit GitHub.

Metadata

Release files for port-mcp-gateway 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for port-mcp-gateway 0.0.1
File Size Uploaded Provenance
port-mcp-gateway-0.0.1.tar.gz 4.2 kB Without provenance Details

Release files / port-mcp-gateway-0.0.1.tar.gz

Download URL port-mcp-gateway-0.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1dc3f13f29bd4772356bec898794f8e5de1d80f792de42836977f8d97a2b1def
BLAKE2b-256 checksum
How to use checksums
e198d16534f85ccdb40210e87225663b0fbc48754bcd8c0c326e6aa08f0e1aeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Security for port-mcp-gateway 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page