BGPKIT API
Search public BGP MRT archives by time window and collector, and look up any IP address or ASN.
我该使用它吗
质量与安全性
C
发现(18)
- LOW在 broker_search 中
- LOW在 broker_search 中
- LOW在 broker_latest 中
- LOW在 broker_latest 中
- LOW在 broker_health 中
- LOW在 broker_health 中
- LOW在 broker_peers 中
- LOW在 broker_peers 中
- LOW在 broker_collectors 中
- LOW在 broker_collectors 中
基于对工具定义和协议合规性的自动分析。
上下文开销
~1,729token 数(工具定义)
~2.2 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 1.35%)
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"bgpkit-api": {
"url": "https://mcp.bgpkit.com/mcp"
}
}
}远程端点
https://mcp.bgpkit.com/mcpstreamable-http它能做什么
工具清单
工具(9)
🟢 只读🟡 写入🔴 删除⚪ 未知
🟢broker_search(ts_start, ts_end, collector_id, project, data_type, ...)
输入模式
{
"type": "object",
"properties": {
"ts_start": {
"type": "string",
"description": "Start timestamp for data collection period. Accepts ISO 8601 format (e.g., '2024-08-01T00:00:00Z') or Unix timestamp. Use to find data from a specific date onwards for historical analysis."
},
"ts_end": {
"type": "string",
"description": "End timestamp for data collection period. Same format as ts_start. Combine with ts_start to define a specific time window for targeted BGP event analysis or research."
},
"collector_id": {
"type": "string",
"description": "Specific route collector identifier. Examples: 'route-views.linx' (RouteViews LINX), 'rrc01' (Amsterdam)."
},
"project": {
"type": "string",
"description": "BGP data collection project. Options: 'routeviews' (University of Oregon RouteViews project) or 'riperis' (RIPE NCC Routing Information Service). Each has different collector locations and methodologies."
},
"data_type": {
"type": "string",
"description": "Type of BGP data to retrieve. 'rib' = Routing Information Base (periodic full routing table snapshots, typically every 2-8 hours, ideal for network topology analysis). 'updates' = real-time BGP routing updates (announcements/withdrawals, ideal for studying routing dynamics and outages)."
},
"page": {
"type": "number",
"description": "Page number for paginated results (starts from 1). Use for navigating large datasets when searching broad time periods or popular collectors."
},
"page_size": {
"type": "number",
"description": "Results per page. Range: 1-1000, default: 100. Use larger values (500-1000) for bulk data discovery, smaller values (10-50) for quick exploration."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪broker_latest(collector_id, project, data_type)
输入模式
{
"type": "object",
"properties": {
"collector_id": {
"type": "string",
"description": "Target specific route collector for latest data. Examples: 'route-views.linx', 'rrc01'. Omit to get latest files from all collectors."
},
"project": {
"type": "string",
"description": "Filter by data collection project. 'routeviews', 'riperis'."
},
"data_type": {
"type": "string",
"description": "Type of latest BGP data needed. 'rib' returns most recent routing table snapshots (best for current network topology analysis), 'updates' returns latest real-time routing changes (best for monitoring recent network events). Omit to get both types."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪broker_health
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪broker_peers(collector_id, asn)
输入模式
{
"type": "object",
"properties": {
"collector_id": {
"type": "string",
"description": "Target route collector to analyze peer relationships. Examples: 'route-views.linx', 'rrc01'"
},
"asn": {
"type": "number",
"description": "Filter for specific Autonomous System Number to see route collectors peers from a specific network"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪broker_collectors(project, country, active)
输入模式
{
"type": "object",
"properties": {
"project": {
"type": "string",
"enum": [
"routeviews",
"riperis"
],
"description": "Filter by collector project: 'routeviews' or 'riperis'"
},
"country": {
"type": "string",
"description": "Filter by country code (e.g., 'US', 'DE', 'JP')"
},
"active": {
"type": "boolean",
"description": "Filter for active collectors only (not deactivated)"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪ip_lookup(ip)
输入模式
{
"type": "object",
"properties": {
"ip": {
"type": "string",
"description": "IP address to analyze (IPv4 or IPv6 format). Examples: '8.8.8.8' (Google DNS), '2001:4860:4860::8888' (Google IPv6 DNS), '1.1.1.1' (Cloudflare DNS). Returns geolocation, ASN ownership, BGP prefix, and RPKI validation status - essential for security analysis, geoblocking, network forensics, and traffic analytics."
}
},
"required": [
"ip"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪asn_lookup(asn, country, search, page, page_size)
输入模式
{
"type": "object",
"properties": {
"asn": {
"type": "number",
"description": "Autonomous System Number to analyze (1-4294967295). Examples: 15169 (Google), 7922 (Comcast), 13335 (Cloudflare), 32934 (Facebook). Returns organization details, network size metrics (customer cone, prefixes, ASN relationships), geographic presence, hegemony scores, and connectivity patterns - crucial for competitive intelligence, peering analysis, and Internet topology research. Omit to browse or filter all ASNs."
},
"country": {
"type": "string",
"description": "Filter ASNs by country code (ISO 3166-1 alpha-2, e.g., 'US', 'DE', 'JP'). Useful for finding all autonomous systems registered in a specific country."
},
"search": {
"type": "string",
"description": "Search ASNs by name or organization (case-insensitive partial match). Examples: 'google', 'comcast', 'cloudflare'. Useful for finding ASNs when you don't know the exact number."
},
"page": {
"type": "number",
"description": "Page number for paginated results when browsing all ASNs or filtering by country/search. Starts from 0."
},
"page_size": {
"type": "number",
"description": "Number of results per page (max 10000). Default: 100. Use for pagination when browsing large result sets."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪asn_lookup_bulk(asns)
输入模式
{
"type": "object",
"properties": {
"asns": {
"type": "array",
"items": {
"type": "number"
},
"minItems": 1,
"maxItems": 10000,
"description": "Array of ASN numbers to analyze (max 10,000 per request). Examples: [15169, 7922, 13335]. More efficient than individual lookups for analyzing multiple networks simultaneously."
}
},
"required": [
"asns"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪bgp_communities(asn, value, description, as_name, country, ...)
输入模式
{
"type": "object",
"properties": {
"asn": {
"type": "number",
"description": "Filter by Autonomous System Number. Examples: 174 (Cogent), 3356 (Level3), 1299 (Arelion). Returns all communities defined by this AS."
},
"value": {
"type": "string",
"description": "Specific community value to lookup (e.g., '174:21000' or '174:20xxx'). Supports wildcard patterns. Returns exact and wildcard range matches."
},
"description": {
"type": "string",
"description": "Filter by description text (case-insensitive partial match). Examples: 'blackhole', 'localpref', 'prepend'. Useful for finding communities with specific functions."
},
"as_name": {
"type": "string",
"description": "Filter by AS organization name (case-insensitive partial match). Examples: 'Cogent', 'Level3', 'NTT'. Useful when you don't know the exact ASN."
},
"country": {
"type": "string",
"description": "Filter by country code (ISO 3166-1 alpha-2, e.g., 'US', 'DE', 'JP'). Returns communities from ASNs in the specified country."
},
"page": {
"type": "number",
"description": "Page number for paginated results (0-indexed, default: 0). Use for browsing large result sets."
},
"page_size": {
"type": "number",
"description": "Results per page (default: 10, max: 1000). Use smaller values (10-50) for quick lookups, larger values (100-500) for bulk analysis."
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}已记录的调用示例
1 / 1
提示词: Example call to broker_search
工具:
broker_search输入参数
{
"ts_start": "example-0",
"ts_end": "example-0",
"collector_id": "example-0",
"project": "example-0",
"data_type": "example-0",
"page": 0,
"page_size": 0
}输出结果
{
"result": {
"content": [
{
"type": "text",
"text": "Error searching BGP data: HTTP 400: Bad Request"
}
]
},
"durationMs": 488
}时长:488ms
社区
证据
最近观测
已验证未记录版本9 个工具