bgphorizon-mcp
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bgphorizon-mcpInvestigate the origin and reachability of 203.0.113.0/24"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
bgphorizon-mcp
An MCP server that exposes BGPHorizon — global BGP routing intelligence — to any MCP-capable LLM client (Claude Code, Claude Desktop, Cursor, Gemini CLI, OpenAI Agents, …).
It is not a thin wrapper over the REST API. The surface is 15 task-shaped
tools built around the operations investigators and operators actually perform,
each returning aggregates plus warnings[] so a model cannot silently misread the
data (persistence, single-vantage-point concentration, censored first_seen, …).
LLM client ──stdio│http──► bgphorizon-mcp ──► BGPHorizon /api/v1 ──► ClickHouse
(key auth, metering, tier entitlements inherited)Install & run
The server needs a BGPHorizon API key (create one in your account's API
panel), passed as BGPHORIZON_API_KEY.
Zero-install with uv:
export BGPHORIZON_API_KEY=bgps_xxx
uvx bgphorizon-mcp --selftest # ✓ API reachable ✓ key valid ✓ 15 tools ✓ 5 resources ✓ 7 promptsuvx bgphorizon-mcp fetches and runs on demand — nothing to install first. Or
install it as a tool (uv tool install bgphorizon-mcp) / with pipx
(pipx install bgphorizon-mcp).
From source:
git clone <this-repo> && cd bgphorizon-mcp
uv sync
uv run bgphorizon-mcp --selftestRelated MCP server: network-mcp
Connect it
You can either use the hosted endpoint (nothing to install) or self-host
(this repo). Both authenticate with the same bgps_ API key and go through the
same metered /api/v1.
Hosted endpoint (no install)
claude mcp add --transport http bgphorizon https://bgphorizon.com/mcp \
--header "Authorization: Bearer bgps_xxx"{
"mcpServers": {
"bgphorizon": {
"url": "https://bgphorizon.com/mcp",
"headers": { "Authorization": "Bearer bgps_xxx" }
}
}
}Self-hosted with Claude Code
claude mcp add bgphorizon --env BGPHORIZON_API_KEY=bgps_xxx -- uvx bgphorizon-mcpClaude Desktop / Cursor / Zed (mcpServers block)
{
"mcpServers": {
"bgphorizon": {
"command": "uvx",
"args": ["bgphorizon-mcp"],
"env": { "BGPHORIZON_API_KEY": "bgps_xxx" }
}
}
}Point at a non-production API with "BGPHORIZON_API_URL" in the same env block.
Hosted / HTTP transport
bgphorizon-mcp --transport http --port 8931 --require-authPut it behind TLS with proxy_buffering off for streaming. See
docs/SETUP.md for every client (Gemini CLI,
OpenAI Agents SDK, LangChain, n8n, VS Code) and reverse-proxy config.
What's in the box
Investigation tools (12): identify, inventory, timeline,
origin_history, reachability, detections, paths, compare_windows,
locate, subprefixes, events_sample, platform_baseline.
Operator tools (3): health_check, validate_announcement, visibility.
Resources (5): bgphorizon://reference/{detection-types, collectors, glossary, data-horizon, report-template} — reference the model can pull without a tool call.
Prompts (7): investigate_entity, write_report, triage_incident,
locate_infrastructure, audit_my_network, preflight_change,
explain_incident — where the house methodology lives. In Claude Code they surface
as /bgphorizon:audit_my_network, etc.
Full tool contracts: docs/TOOLS.md.
Design rationale and full docs: https://bgphorizon.com/docs/mcp.
Writing investigative reports
The server ships a complete report kit and a write_report prompt so you can
generate defensible, house-style BGP routing reports from any client — Claude
Code, Claude Desktop, OpenAI (Codex / Agents / ChatGPT), Gemini CLI, Cursor, and more.
It's three steps: connect the server → set your agent's system prompt to
reporting/SYSTEM-PROMPT.md → ask for the report. The
per-client, copy-paste guide is in reporting/README.md.
Configuration
Env var | Default | Purpose |
| — | API key, forwarded as |
|
| BGPHorizon base URL. |
|
| Per-request timeout (seconds). |
|
| DEBUG surfaces every upstream request. |
Develop
uv sync --group dev
uv run pytest # deterministic reshaping logic (transitions, direction, …)
uv run bgphorizon-mcp --selftest
npx @modelcontextprotocol/inspector uv run bgphorizon-mcp # raw protocol inspectionLayout: client.py (one method per /api/v1 endpoint) · tools/ (analytical
operations + _shape.py pure helpers) · resources.py + reference/ (bundled
docs) · prompts.py (methodology). Adding a tool = one function under tools/
with an @mcp.tool() decorator; the input schema comes from its type hints.
License
MIT.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides LLMs with network intelligence capabilities including PTR record lookups, ASN analysis, traceroute enrichment, and real-time network monitoring through The Aleph API.1314MIT
- Alicense-qualityDmaintenanceProvides AI assistants with direct access to multi-vendor network devices for tasks like configuration management, health checks, and topology discovery through 35 specialized tools. It enables natural language control over platforms including Cisco, Juniper, and Nokia using SSH, NETCONF, and SNMP protocols.11MIT
- AlicenseAqualityCmaintenanceProvides global internet resource intelligence by querying RIRs for IP and ASN data, routing visibility, and network health. It enables users to perform RPKI validation, BGP inspection, and historical allocation analysis through natural language or a REST API.421MIT
- Alicense-qualityDmaintenanceEnables AI assistants to perform real network diagnostics on the local machine, including ping, traceroute, DNS lookups, TLS checks, and more.MIT
Related MCP Connectors
Domain & company intel for AI agents: RDAP, DNS, email deliverability, tech stack. No API keys.
Vendor status pages, TLS cert inspection, DNS propagation checks, and incident-response playbooks.
The internet's infrastructure graph for AI agents - 46B nodes and edges, free trial via 2 HTTP calls
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bgphorizon/bgphorizon-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server