# Ripe Bgp State

> Fetches global BGP state data from RIPE NCC for a specific resource.

- **Type:** Skill
- **Install:** `agentstack add skill-mehrdadrad-radops-ripe-bgp-state`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [mehrdadrad](https://agentstack.voostack.com/s/mehrdadrad)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [mehrdadrad](https://github.com/mehrdadrad)
- **Source:** https://github.com/mehrdadrad/radops/tree/main/skills/ripe-bgp-state

## Install

```sh
agentstack add skill-mehrdadrad-radops-ripe-bgp-state
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# RIPE BGP State Lookup

This skill queries the RIPE Stat API to retrieve global BGP state information for a specific IP prefix or ASN.

## When to Use

- To verify global routing visibility of a prefix.
- To debug BGP path attributes and propagation.
- To check for potential route leaks or hijacks.

## Execution
Set the `resource` variable in the `variables` argument to the IP prefix or ASN you wish to query (e.g., `1.1.1.0/24`).

```python
import requests
import json
import sys

resource = locals().get("resource") or (sys.argv[1] if len(sys.argv) > 1 else None)

if resource:
    response = requests.get("https://stat.ripe.net/data/bgp-state/data.json", params={"resource": resource})
    print(json.dumps(response.json(), indent=2))
else:
    print("Error: The 'resource' variable is required. Please provide it in the 'variables' argument.")
```

## Input

- `resource`: The IP prefix or ASN to query (e.g., `1.1.1.0/24` or `AS3333`).

## Output

A JSON object containing:
- `status`: Request status.
- `data`: Contains `bgp_state` list with route details (path, source_id, target_prefix, etc.).

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [mehrdadrad](https://github.com/mehrdadrad)
- **Source:** [mehrdadrad/radops](https://github.com/mehrdadrad/radops)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-mehrdadrad-radops-ripe-bgp-state
- Seller: https://agentstack.voostack.com/s/mehrdadrad
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
