A gateway for interacting with Port.io through a standardized MCP API
Project description
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
- 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
- Start the gateway:
port-mcp-gateway
- 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)
-
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
-
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file port-mcp-gateway-0.0.1.tar.gz.
File metadata
- Download URL: port-mcp-gateway-0.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dc3f13f29bd4772356bec898794f8e5de1d80f792de42836977f8d97a2b1def
|
|
| MD5 |
5d48b003ce45c51ad61cf9a1a3e1eb90
|
|
| BLAKE2b-256 |
e198d16534f85ccdb40210e87225663b0fbc48754bcd8c0c326e6aa08f0e1aeb
|