Skip to main content

Python client for the Gildea AI market intelligence API

Project description

Gildea

Python client for the Gildea AI market intelligence API.

Gildea tracks 500+ expert sources on the AI economy, decomposes each one into verified reasoning chains (thesis, arguments, claims, evidence), and serves them through a REST API. This package gives you a Python client for that API. (For MCP clients like Claude Desktop, connect to the hosted MCP server — see below; no install needed.)

Hybrid retrieval — dense neural embeddings + learned sparse, fused via RRF, with cross-encoder reranking — for high precision on verified, citable text units. 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 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 Desktop or Claude Code, 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 Desktop

Add to your claude_desktop_config.json:

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

Restart Claude Desktop. The 7 Gildea tools appear automatically.

Claude Code

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

Verify: claude mcp listgildea ✓ Connected.

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.

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: thesis, arguments, claims, 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: 5 requests/minute, 200 requests/month, full API + MCP access — no feature gates.

Documentation

Full API docs at docs.gildea.ai.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gildea-0.8.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gildea-0.8.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file gildea-0.8.0.tar.gz.

File metadata

  • Download URL: gildea-0.8.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for gildea-0.8.0.tar.gz
Algorithm Hash digest
SHA256 c2143a5af793772762581de549ef69fc4b42c025c54737bfa54b86ef838c7287
MD5 118af738f0c74fa0d9348e65d630d882
BLAKE2b-256 e36b188b6ed5fbc989953354a58119419844a8fb435166ae808e1507284aaac9

See more details on using hashes here.

File details

Details for the file gildea-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: gildea-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for gildea-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6243cf67694bac5547bffb576f22879a348e7c54b0bc7dd1e1c7b86612ccd12
MD5 70d4c1601b00cd240caddd85a732788d
BLAKE2b-256 8a50390905fc07642430fa5047c485843751e7b97e0bb96625e86320573d3a32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page