# Sugra API [Health: Active]

**Category:** ☁️ Cloud Platforms  
**Repository:** https://github.com/Sugra-Systems/prod-sugra-ai-MCP  
**GitHub Stars:** 4  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/sugra-api

## Description
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.

## Tools
Capabilities this server exposes over MCP:

- **sugra_entity_screen** — Screen a person or organization name against the Sugra sanctions corpus.

    Returns a SCREENING SIGNAL, not a compliance determination. Sugra is a
    technology provider, not a sanctions authority or consumer reporting agency.
    PEP and adverse-media coverage is supplementary and non-comprehensive - a
    `clear` result is not proof of absence, and a `hit` is a candidate match to
    review, not a finding.

    Output is COMPACT to protect the agent context budget:
    `{status, matches:[{name, score, list, type}], disclaimer}`. The verdict
    `status` is one of `clear`, `review`, or `hit`. The heavy raw fields
    (match rationale, source ids, publish dates) are dropped; use the Sugra API
    directly when the full screening envelope is needed.

    Args:
        name: The person or organization name to screen (required).
        country: Optional ISO 3166-1 alpha-2 country to narrow the match.
        dob: Optional date of birth (YYYY-MM-DD) for a person.
        nationality: Optional nationality to narrow the match.
    
- **sugra_entity_lookup** — Resolve an entity by identifier and return its composed KYB envelope.

    `anchor` is `lei` (Legal Entity Identifier, resolved via the GLEIF registry)
    or `vat` (EU VAT number, validated via the EU VIES service). The result
    weaves identity, a sanctions screening signal, and - on request - ownership
    and adverse-media slices.

    The screening verdict is a SCREENING SIGNAL, not a compliance determination,
    and any PEP / adverse-media content is supplementary and non-comprehensive.
    The `disclaimer` field carries this and is always present.

    Output is COMPACT by default to protect the agent context budget:
    `{entity:{name, anchor, value, status, country}, screening:{status,
    top_matches:[...3], hit_count}, ids:{...}, disclaimer}`. Pass `include` to
    opt INTO fuller per-slice detail, e.g.
    `include=["ownership","adverse_media"]` adds those slices in full form.

    On a bad anchor or an API error this returns a clean `{error, detail}` dict
    rather than raising, so the agent can branch on `result.get("error")`.

    Args:
        anchor: Identifier type, one of `lei` or `vat`.
        value: The identifier value (the 20-char LEI code or the VAT number).
        include: Optional list of fuller slices to add, e.g.
            `["ownership", "adverse_media"]`. Omit for the compact default.
    
- **search_endpoints** — Search the bundled Sugra endpoint catalog by natural-language query.

    Use this to pick an operation_id. It does not fetch data. Typical loop:
    1. search_endpoints(query) -> ranked hits with required_parameters
    2. describe_endpoint(operation_id) -> params, request_body_schema, agent_hints
    3. call_endpoint(operation_id, params=..., body=...) or fetch_data(query, params=...)

    Filter with toolset or source only after list_toolsets / list_sources;
    a misspelled filter is an error, not a silent empty result.

    Examples:
    - search_endpoints("US CPI inflation")
    - search_endpoints("AAPL price", toolset="markets")
    - search_endpoints("container ship AIS", toolset="network")
    
- **describe_endpoint** — Describe one Sugra API endpoint by operation_id.

    Includes agent_hints (duration_class fast/slow/heavy, max_concurrency,
    bulk billing) so you can budget timeouts and parallelism before calling.
    POST endpoints with a JSON body also carry request_body_schema (the
    resolved JSON schema) - construct the `body` argument from it instead
    of guessing key names. Call this after search_endpoints and before
    call_endpoint when you need the exact parameter names and examples.
    
- **call_endpoint** — Call a Sugra API endpoint by operation_id from the bundled catalog.

    Plan calls with describe_endpoint's agent_hints: duration_class "fast"
    usually responds in under ~2s, "slow" usually 1-5s and occasionally 15s+
    on a cold upstream, "heavy" can exceed the gateway timeout - keep parallel
    calls within max_concurrency and prefer small batches. Bulk endpoints bill
    1 request credit per body item. Failures return structured errors {error,
    reason, status_code, elapsed_ms, retry_hint}; after "upstream_timeout" a
    single retry often succeeds because the aborted attempt warms upstream
    caches.
    
- **list_toolsets** — List catalog groups with endpoint counts and short descriptions.

    Use the group names as the toolset filter on search_endpoints. This
    does not call the Sugra API; it reads the bundled catalog.
    
- **fetch_data** — One-step fetch: find the best Sugra endpoint for the query and call it.

    Combines search_endpoints + call_endpoint into a single round trip. Use
    this when you want data without manually picking an operation_id. The
    full search_endpoints + describe_endpoint + call_endpoint dance is still
    available when you need explicit control, but for most natural-language
    queries this tool is enough.

    Behavior:
    1. Search the bundled catalog for the query. Top match wins.
    2. If the matched endpoint has required parameters and they are all
       provided in `params`, call it and return the response.
    3. If required parameters are missing, return the candidate endpoints
       and the missing-params list so the LLM can retry with the correct
       `params` dict on the next call.

    Examples:
    - `fetch_data("US CPI inflation", params={"series_id": "CPIAUCSL"})`
      → calls /api/v1/fred/series/CPIAUCSL, returns observations.
    - `fetch_data("Bitcoin price", params={"coin_id": "bitcoin"})`
      → calls /api/v1/crypto/bitcoin/price.
    - `fetch_data("Latest financial news")`
      → news_latest has no required params, returns latest news directly.
    
- **list_sources** — List source families in the bundled catalog with endpoint counts.

    Use the family names as the source filter on search_endpoints. This
    does not call the Sugra API.
    

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "sugra-api": {
    "command": "uvx",
    "args": ["sugra-api-mcp"],
    "env": {
      "SUGRA_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `SUGRA_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Sugra API does

Sugra API MCP server exposes Sugra Data to AI assistants and agents over the Model Context Protocol. Its bundled catalog covers more than 1,600 endpoints from 200 primary sources across 36 data domains, including finance, macroeconomics, news, earth data, network intelligence, entities, and research.

The server supports both broad natural-language data retrieval and more controlled endpoint execution. An agent can ask for a result directly with `fetch_data`, or select an operation from the catalog and call it with known parameters. Catalog responses include source and date information for returned answers.

Entity workflows are separate from general catalog calls. `sugra_entity_screen` checks a person or organization name against Sugra’s sanctions corpus, while `sugra_entity_lookup` resolves an LEI or EU VAT number and can return identity, screening, ownership, and adverse-media slices.

## How it works

The hosted MCP endpoint is available at `https://mcp.sugra.ai/mcp`. Clients authenticate with a Sugra account or by sending an API key as a bearer token. The package can also run locally over stdio for Python 3.13 or newer.

For deliberate endpoint selection, the usual sequence is:

1. Search the catalog with `search_endpoints`.
2. Inspect the selected operation using `describe_endpoint`.
3. Call it with `call_endpoint` and the required parameters.

`fetch_data` combines the search and call steps. If required parameters are missing, it returns candidate endpoints and the missing-parameter list so the agent can retry. `list_toolsets` and `list_sources` expose catalog groupings that can be used as search filters.

Endpoint descriptions include duration class, concurrency limits, and bulk billing hints. Failures from endpoint calls are returned as structured error objects with a reason, status code, elapsed time, and retry hint.

## Setup and configuration

For hosted use, connect a client to the MCP URL and authenticate with a Sugra account or bearer API key. The repository also documents client installation paths for Claude, Claude Code, ChatGPT, Codex, VS Code, Cursor, GitHub Copilot, and other MCP-capable agents.

To run locally, install the PyPI package and provide an API key:

```bash
pip install sugra-api-mcp
export SUGRA_API_KEY=sugra_...
sugra-api-mcp call quotes_symbol_price --params '{"symbol":"AAPL"}'
```

A free API key can be obtained through Sugra’s account registration flow.

## Tools and capabilities

- `fetch_data` finds the best catalog endpoint for a natural-language query and calls it.
- `search_endpoints` searches operations and supports toolset or source filters.
- `describe_endpoint` returns parameters, request-body schemas, examples, and execution hints.
- `call_endpoint` executes a selected operation and returns structured failures when calls do not succeed.
- `list_toolsets` and `list_sources` expose catalog organization without making data requests.
- `sugra_entity_screen` returns compact `clear`, `review`, or `hit` screening signals.
- `sugra_entity_lookup` resolves LEI or VAT identifiers into a composed KYB response.

## Limitations and notes

Sanctions, PEP, and adverse-media results are screening signals rather than compliance determinations. A clear result does not prove that no relevant record exists, and a hit is a candidate match for review. PEP and adverse-media coverage is supplementary and non-comprehensive.

Entity responses are compact by default. Additional ownership or adverse-media detail must be requested through the `include` argument, and full screening envelopes are available through the Sugra API directly.

Slow endpoints may take 1–5 seconds and can occasionally exceed 15 seconds on a cold upstream. Heavy endpoints can exceed the gateway timeout, so agents should follow the supplied concurrency guidance and prefer small batches. Bulk endpoints charge one request credit per body item.

_Full upstream README: https://allmcps.com/mcp/sugra-api/readme_

