A Model Context Protocol (MCP) server for Port.io
Project description
Port MCP Server
A Model Context Protocol (MCP) server for the Port.io API, enabling Claude to interact with Port.io's developer platform capabilities.
Installation
Obtain your Port credentials
-
Create a Port.io Account:
- Visit Port.io
- Sign up for an account if you don't have one
-
Create an API Key:
- Navigate to your Port.io dashboard
- Go to Settings > Credentials
- Save both the Client ID and Client Secret
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"port": {
"command": "uvx",
"args": [
"mcp-server-port@0.1.4",
"--client-id", "YOUR_CLIENT_ID",
"--client-secret", "YOUR_CLIENT_SECRET",
"--region", "REGION" # US or EU
]
}
}
}
Cursor
- Make sure
uvxis installed:
pip install uvx
- Get its location:
which uvx
# Example output: /Users/janedoe/.local/bin/uvx
- Create a script to run the server:
# run-port-mcp.sh
cd /Users/janedoe/.local/bin/uvx
# Run the server with the specified credentials
./.venv/bin/uvx mcp-server-port@0.1.4 --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET --region YOUR_REGION
- Make it executable:
chmod +x /path/to/your/file/run-port-mcp.sh
- Configure in Cursor settings:
- Go to Cursor settings > MCP Servers
- Configure with:
- Name -
Port - Type -
Command - Command -
/path/to/your/file/run-port-mcp.sh
- Name -
Capabilities
Agent Tools
trigger_port_agent- Trigger the Port.io AI agent with a prompt and wait for completion
- Required inputs:
prompt(string): The prompt to send to the Port.io AI agent
- Returns: Agent response with status, output, and any required actions
- Note: The agent may return action URLs for bug reports or other tasks that require user interaction
Blueprint Tools
-
get_blueprints- Retrieve a list of all blueprints from Port
- Optional inputs:
detailed(boolean, default: false): Return complete schema details for each blueprint
- Returns: Formatted text representation of all available blueprints
-
get_blueprint- Retrieve information about a specific blueprint by its identifier
- Required inputs:
blueprint_identifier(string): The unique identifier of the blueprint to retrieve
- Optional inputs:
detailed(boolean, default: true): Return complete schema details
- Returns: Formatted text representation of the specified blueprint
Entity Tools
Will be added in the future.
Development
Local Setup
- Create and activate a virtual environment:
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate # On Unix/macOS
# or
.venv\Scripts\activate # On Windows
- Install dependencies:
# Install in development mode
pip install -e .
# Install development dependencies
pip install -r requirements-dev.txt
- Run the server locally:
python -m src.mcp_server_port --client-id "CLIENT_ID" --client-secret "CLIENT_SECRET" --region "REGION"
Publishing a New Version
To build and publish a new version to PyPI:
# Ensure you have the latest build tools
pip install --upgrade build twine
# Update version in pyproject.toml
# Build the package
python -m build
# Check the package
twine check dist/*
# Upload to PyPI
twine upload dist/mcp_server_port-0.1.4*
Troubleshooting
If you encounter authentication errors, verify that:
- Your Port credentials are correctly set in the arguments
- You have the necessary permissions
- The credentials are properly copied to your configuration
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_port-0.1.4.tar.gz.
File metadata
- Download URL: mcp_server_port-0.1.4.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5591140b32f435668301667bfccf07e55e6c79d7ca70ffa6dd37ff21203abffc
|
|
| MD5 |
23a9d8fdb5c064d5eb6bac803eb35392
|
|
| BLAKE2b-256 |
f8ba160b4bb18b29d529abc7a601361e96302bcc1a6b3a4f5bd729807a8de098
|
File details
Details for the file mcp_server_port-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mcp_server_port-0.1.4-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d948ad74e5b5bb4b2442b4e060b0643f536b2863e9ac15fc83bc9065a8e4fdbb
|
|
| MD5 |
5a588b6edc7a17ef01ee6b8e5d31a71e
|
|
| BLAKE2b-256 |
51b9bd1634583c88b636423daa6188742eee870177dfe8bd0292bb36c5abcfdd
|