Skip to main content

Gildea

Python client for the Gildea market data API for AI.

Gildea turns raw events and expert analysis on the AI economy into verified, atomic intelligence your code can query. We source, structure, and verify signals from 500+ leading sources worldwide, decompose each into individually verified text units, and serve them through a REST API. Every unit is backed by verbatim evidence and a citation to its source. This package is the Python client for that API. (For MCP clients like Claude Code or Cursor, connect to the hosted MCP server; see below, no install needed.)

The standout call is hybrid search (semantic plus keyword) over those verified units, tuned for precise, citable facts. See How search works.

Install

pip install gildea

Quick start

The differentiating call is search(). Every hit is a verified atomic fact with an evidence-backed citation back to its source:

from gildea import Gildea

client = Gildea(api_key="gld_your_key_here")

results = client.search(query="the state of the AI market")

for hit in results["results"][:3]:
    print(f"\n{hit['unit']['text']}")
    print(f"  ↳ {hit['citation']['title']} ({hit['citation']['domain']})")
Combined US investment in data centers, computers, and software surpasses $1T annualized, representing roughly 3.5% of GDP.
  ↳ America's $1T AI Gamble (apricitas.io)

The market cap of SaaS companies fell by over one trillion dollars due to fears about coding agents.
  ↳ 45 Thoughts About Agents (secondthoughts.ai)

Drill into a source

Pass any signal_id from a search result to get the full verified decomposition as a flat list of units — the central statement (role thesis for analysis, synopsis for events), supporting arguments, and atomic claims. Each unit carries its evidence_preview by default:

signal_id = results["results"][0]["citation"]["signal_id"]
signal = client.signals.get(signal_id)

print(f"{signal['title']} — {signal['verified_unit_count']} verified units")
for unit in signal["units"]:
    print(f"  [{unit['role']}] {unit['text']}")

Entity intelligence

Trend direction, scale, and notability across the full corpus:

nvidia = client.entities.get("NVIDIA")
print(f"{nvidia['name']}: {nvidia['direction']} ({nvidia['scale']} scale, {nvidia['notability']} notability)")
# NVIDIA: Declining (Large scale, High notability)

Cross-source consensus

Find verified text units that semantically match a known one — useful for "find more like this" and corroborating a claim across sources:

unit_id = results["results"][0]["unit"]["id"]
similar = client.search(similar_to=unit_id, limit=5)

MCP server

For MCP clients like Claude Code or Cursor, connect to the hosted MCP server — paste the URL + your API key, no Python install needed. (This SDK is the REST client; it does not bundle a local MCP server.)

Claude Code

claude mcp add gildea --transport http https://api.gildea.ai/mcp/ --header "x-api-key: gld_your_key_here"

Verify: claude mcp list → gildea ✓ Connected.

Cursor

Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):

{
  "mcpServers": {
    "gildea": {
      "url": "https://api.gildea.ai/mcp/",
      "headers": { "x-api-key": "gld_your_key_here" }
    }
  }
}

The 7 Gildea tools appear in Cursor's MCP settings.

Other MCP clients

Any MCP-compliant client with streamable HTTP support can connect to https://api.gildea.ai/mcp/ with x-api-key headers. See the MCP client list. Claude Desktop is not currently supported: its connector UI only accepts OAuth, and its config file does not pass custom headers to remote MCP servers. See the MCP guide for current client support.

Available tools

Tool What it does
search_text_units Hybrid search across verified text units, or vector similarity via similar_to
list_signals Browse signals by entity, theme, date, content type
get_signal_detail Full verified decomposition as flat units: thesis/synopsis, arguments, claims, each with evidence
get_entity_profile Entity trend analytics, co-occurrence, theme distribution
list_entities Discover entities by trend direction, notability, scale
get_themes Theme overview across value chain and market force axes
get_theme_detail Single theme trend analytics and cross-theme relationships

API key

Get yours at gildea.ai. Free tier: 20 requests/minute, 200 requests/month, full API + MCP access — no feature gates.

Documentation

Full API docs at docs.gildea.ai.

License

MIT

Metadata

Release files for gildea 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gildea 0.10.0
File Size Uploaded Provenance Actions
gildea-0.10.0.tar.gz 14.8 kB Without provenance Details for gildea-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gildea 0.10.0
File Interpreter ABI Platform Actions
gildea-0.10.0-py3-none-any.whl Python 3 none any Details for gildea-0.10.0-py3-none-any.whl

Total release size: 24.3 kB

Release files / gildea-0.10.0.tar.gz

Download URL gildea-0.10.0.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2bc84775d5115947f5b65f6d207d782d015a8fd4a20bff19b15f251ed3138d67
BLAKE2b-256 checksum
How to use checksums
8cf75f58e92ebda1957fb820fa3dc4751f5915ce3b1d0de184191c8d430e9dec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Release files / gildea-0.10.0-py3-none-any.whl

Download URL gildea-0.10.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa475468146af7c76441cad4904fbea520dccb0805872f441d1fa613bc4d0967
BLAKE2b-256 checksum
How to use checksums
e5632a4bc051710cd17b97c74474d3db4b59deb4ed70a3f9c5d3f1ef49528ee5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.14

Security for gildea 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page