PacketFabric MCP Server
Query and manage PacketFabric NaaS: ports, virtual circuits, cloud routers, pricing, metrics.
PacketFabric scores 63 (Good), licensed MPL-2.0 and written in Python. It can be reached as a remote MCP endpoint. It does not declare tools yet. Filed under Data and analytics. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mpl-2.0.
License, quality and maintenance
License: Grade B
MPL-2.0 is a weak copyleft license: changes to its own files must be shared.
How license is gradedQuality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "packetfabric-public-mcp": { "command": "uvx", "args": [ "packetfabric-mcp" ], "env": { "PF_TOKEN": "YOUR_PF_TOKEN", "PF_ALLOW_WRITES": "false", "PF_ON_BEHALF": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
PF_TOKENSecret | Optional | PacketFabric API key (portal: Settings > API Keys). Optional: pricing and location lookups work without it |
PF_ALLOW_WRITES | Optional | Set to true to allow create/modify/delete calls (each still needs confirm=true) |
PF_ON_BEHALF | Optional | Resellers only: customer UUID to act on behalf of |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
packetfabric-mcp
MCP server for the PacketFabric API, built from its OpenAPI spec
(346 operations, bundled in src/packetfabric_mcp/data/openapi.yaml).
Instead of one tool per endpoint (which overwhelms the model), it exposes 16 tools:
| Tool | What it does |
|---|---|
pf_get_account | Current customer account — good credential check |
pf_list_ports, pf_get_port | Ports / LAGs / cloud ports |
pf_list_services | Virtual circuits (backbone, cloud, IX, marketplace) |
pf_list_point_to_point | PTP services |
pf_list_cloud_routers, pf_list_cloud_router_connections | Cloud Routers and their connections |
pf_list_cloud_connections | L2 hosted / dedicated cloud connections |
pf_find_locations | POPs / data centers. No API key needed |
pf_get_pricing | List pricing (MRC/NRC) between locations. No API key needed |
pf_get_traffic | bps/pps time series for a port or a VC on a port |
pf_get_maintenances | Current/upcoming maintenance by POP or market |
pf_list_api_areas → pf_search_endpoints → pf_describe_endpoint → pf_call_endpoint | Reach any other endpoint in the spec |
Safety
- Read-only by default. Any POST/PUT/PATCH/DELETE is refused unless the server runs with
PF_ALLOW_WRITES=true. - With writes enabled, a write call returns a dry-run preview first; it only executes when re-called with
confirm=true. - Auth/session, MFA, signup and API-key-management endpoints are never exposed.
- Without an API key, only list pricing and location lookups work. Those are the read endpoints PacketFabric serves publicly; a keyless call never carries credentials and cannot ask for account-specific pricing.
- List responses are capped (
max_items, default 100) and can be trimmed to specificfields.
Setup
Requires uv (brew install uv).
cd ~/Documents/src/packetfabric/mcp
uv sync
uv run pytest # offline tests
Get an API key in the PacketFabric portal (Settings → API Keys). API keys work with MFA-enabled accounts;
login/password does not. Pricing and location lookups work without one, so you can leave PF_TOKEN out to try
those first.
Claude Code
claude mcp add packetfabric -s user -e PF_TOKEN=your-key -- \
uv run --directory ~/Documents/src/packetfabric/mcp packetfabric-mcp
Claude Desktop / Cowork
Settings → Developer → Edit Config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"packetfabric": {
"command": "/opt/homebrew/bin/uv",
"args": ["run", "--directory", "/Users/chad/Documents/src/packetfabric/mcp", "packetfabric-mcp"],
"env": { "PF_TOKEN": "your-key" }
}
}
}
(Use which uv for the command path. Restart Claude after editing.)
To allow provisioning, add "PF_ALLOW_WRITES": "true" to env. Consider a separate server entry
(e.g. packetfabric-rw) so read-only stays the default.
Configuration
| Env var | Purpose |
|---|---|
PF_TOKEN | API key (sent as Bearer). Preferred. Optional for pricing and location lookups |
PF_LOGIN / PF_PASSWORD | Alternative to PF_TOKEN; auto re-login on 401 |
PF_ALLOW_WRITES | true to allow create/modify/delete (each still needs confirm=true) |
PF_ON_BEHALF | Resellers: customer UUID sent as On-Behalf header |
PF_API_URL | Override base URL (default https://api.packetfabric.com) |
PF_SPEC_PATH | Use a different OpenAPI file |
PF_TIMEOUT, PF_MAX_RESPONSE_CHARS | HTTP timeout (s, default 60) and response size cap (default 60000) |
Hosted mode (MCP over HTTP + A2A + discovery)
uv sync --extra a2a
PF_PUBLIC_URL=https://mcp.example.com uv run packetfabric-mcp --http --host 0.0.0.0 --port 8765
# or: docker build -t packetfabric-mcp . && docker run -p 8765:8765 -e PF_PUBLIC_URL=... packetfabric-mcp
| Path | What |
|---|---|
POST /mcp | MCP streamable HTTP (stateless, so it scales horizontally) |
GET /mcp/server-card | MCP Server Card (SEP-2127) |
GET /.well-known/agent-card.json | A2A v1.0 Agent Card |
POST /a2a | A2A JSON-RPC endpoint |
GET /.well-known/ai-catalog.json | AI Catalog listing both cards |
GET /.well-known/agent.json | Same agent card at the pre-0.3 A2A path, for older clients |
GET /llms.txt | Summary and links for language models (llmstxt.org) |
GET / | Short human-readable page linking to all of the above |
GET /healthz | Liveness |
Every caller uses their own PacketFabric API key, sent as Authorization: Bearer <key> (plus
On-Behalf: <customer uuid> for resellers). The operator's PF_TOKEN/PF_LOGIN are ignored in HTTP mode
unless PF_HTTP_USE_SERVER_CREDENTIALS=true, which is only safe for a private single-user deployment.
Put it behind TLS; the discovery documents are public by design and contain no secrets.
MCP callers with no key can still use pf_get_pricing and pf_find_locations (and the same endpoints through
pf_call_endpoint). Those requests go to PacketFabric with no credentials at all, never the operator's, and
return list pricing only. Every other tool answers with a message asking for a key.
The A2A agent is deterministic, not an LLM: send a DataPart {"skill": "list_ports", "arguments": {"pop": "LAX1"}}
and get the API result back as a JSON data artifact. Skills mirror the MCP tools (see the agent card).
A2A access is always read-only. A2A tasks are private to the API key (and On-Behalf customer) that created
them; requests without a key get a plain reply and nothing is stored. Unlike MCP, every A2A skill needs a key,
including pricing and locations.
curl -s https://mcp.example.com/a2a -H 'A2A-Version: 1.0' -H 'Content-Type: application/json' \
-H "Authorization: Bearer $PF_TOKEN" -d '{"jsonrpc":"2.0","id":1,"method":"SendMessage","params":{"message":
{"messageId":"1","role":"ROLE_USER","parts":[{"data":{"skill":"find_locations","arguments":{"market":"NYC"}}}]}}}'
| Env var (HTTP mode) | Purpose |
|---|---|
PF_PUBLIC_URL | Public https base URL advertised in the cards (otherwise derived from the request) |
PF_HTTP_USE_SERVER_CREDENTIALS | true = fall back to the operator's own credentials (private use only) |
PF_DISABLE_A2A | true = serve MCP only |
PF_ICON_URL | Icon advertised in the cards |
PF_MAX_BODY_BYTES | Request body cap for non-MCP routes, including /a2a (default 1 MiB, 413 above it) |
PF_A2A_TASK_TTL_SECONDS | How long finished A2A tasks stay retrievable (default 3600) |
PF_A2A_MAX_TASKS / PF_A2A_MAX_TASKS_PER_CALLER | Caps on stored A2A tasks, oldest evicted first (defaults 10000 / 200) |
Domain-level discovery: if the server runs on its own host (e.g. mcp.packetfabric.com), the
/.well-known/ documents are already in the right place. To advertise it from the main domain, serve a copy of
/.well-known/ai-catalog.json from https://packetfabric.com/.well-known/ai-catalog.json (the entries hold
absolute URLs, so a static copy works).
Publishing
Listed on the MCP Registry as
io.github.PacketFabric/packetfabric-mcp (see server.json), installed from PyPI as packetfabric-mcp.
Branches: dev (default) takes every change. Each push to it publishes the container image
ghcr.io/packetfabric/public-mcp:vX.Y.Z-dev.N (.github/workflows/image.yml), and the staging server at
https://mcp.dev.packetfabric.net picks the newest one up within minutes. main is the release line.
- Bump the version in
pyproject.toml,src/packetfabric_mcp/__init__.pyandserver.json(tests fail if they disagree). - Merge
devintomainwith a PR, then push a tagvX.Y.Zonmain..github/workflows/publish.ymlruns the tests, publishes to PyPI (Trusted Publishing), then publishesserver.jsonto the MCP Registry using GitHub OIDC..github/workflows/image.ymlpublishesghcr.io/packetfabric/public-mcp:vX.Y.Zand writes its digest to the run summary. Both refuse a release tag that is not onmain; pre-release tags (vX.Y.ZrcN) may come fromdev, publish to PyPI only (not the MCP Registry), and build no image. - Production (
https://mcp.packetfabric.com) runs the newest release: it picks up the newvX.Y.Zimage within minutes ofimage.ymlpublishing it. Pushing a release tag onmainis therefore a production deploy. - The registry entry lists the hosted endpoint
https://mcp.packetfabric.com/mcp(inserver.json; the repo variableMCP_PUBLIC_URLoverrides its URL if set, and its headers always come fromserver.json).
One-time: add a PyPI Trusted Publisher for packetfabric-mcp (repo PacketFabric/public-mcp, workflow
publish.yml, environment pypi). The mcp-name: comment at the top of this README is how the registry verifies
that the PyPI package belongs to this server; keep it.
To publish under com.packetfabric/... instead of io.github.PacketFabric/..., change REGISTRY_NAME in
metadata.py and server.json, add the DNS TXT record from mcp-publisher login dns, and switch the
workflow's login step.
Other
- Refresh the bundled spec:
uv run packetfabric-mcp --update-spec - To add a curated tool, copy one of the
pf_list_*functions inserver.pyand point_run()at anoperation_id(find one withpf_search_endpoints). Add a matching entry toSKILLSina2a_agent.py.
Frequently asked questions
What is PacketFabric MCP Server?
Query and manage PacketFabric NaaS: ports, virtual circuits, cloud routers, pricing, metrics.
How do I install PacketFabric MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. PacketFabric MCP Server runs locally from the PyPI package packetfabric-mcp with the command uvx packetfabric-mcp.
Is PacketFabric MCP Server free and open source?
Yes. PacketFabric MCP Server is released under the MPL-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does PacketFabric MCP Server support remote (HTTP) connections?
Yes. PacketFabric MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
How is PacketFabric MCP Server's trust score calculated?
PacketFabric MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.