
Espresso API & MCP
v0.1 LiveEspresso is Cafecito's curated business intelligence product suite. The API exposes the structured data behind Espresso as read-only sips: event digests, derived signals, tags, and relationships that are ready for dashboards, monitoring workflows, and AI agents.
Key features
- Business intelligence data - Event and signal records with UUIDs, timestamps, and domain specific structured fields
- Semantic search - Natural language search with an adjustable similarity threshold
- Tag filtering - Filter events and signals by scalar tags such as topics, domains, regions, or entities
- Relationship traversal - Follow
same_asandderived_fromlinks between related sips - MCP-friendly responses - Return normal JSON or flat plain text with
response_type=text
Authentication
Get API KeyCode
Base URL
All Espresso gateway endpoints live under the /espresso path prefix.
Code
Check out API reference for the complete schema, parameters, and response details.
Data model
A sip is the basic unit of information. Each sip has a UUID, a created timestamp, and a JSON digest. Espresso currently exposes:
- Events - Self-contained digests of related actions or developments, such as a policy change and its local fallout
- Signals - Larger derived intelligence synthesized from related events and actions, such as a cross-domain market or policy outlook
- Tags - Scalar labels that can be used to filter event and signal lists
- Relationships - Links between sips, including
same_asandderived_from
List endpoints flatten each sip's digest and merge id and created into every returned object. Some records may include additional pipeline-specific keys beyond the stable fields shown in the reference.
Core endpoints
| Endpoint | Description |
|---|---|
GET /espresso/health | Service health check |
GET /espresso/tags | Paginated list of unique tag strings |
GET /espresso/events | Event-kind sips, sorted by created descending |
GET /espresso/signals | Signal-kind sips, sorted by created descending |
GET /espresso/related/{relationship} | Sips linked by same_as or derived_from |
Query parameters
Events and signals
| Parameter | Type | Description |
|---|---|---|
ids | CSV UUIDs | Fetch specific sips by UUID |
tags | CSV strings | Tag filters, ANDed across supplied tags |
q | string | Semantic search query, max 1024 characters |
acc | number (0-1) | Minimum similarity for q, default 0.75 |
from | date | Include sips created on or after YYYY-MM-DD |
response_type | string | json or text, default json |
limit | integer (1-128) | Page size, default 16 |
offset | integer | Pagination offset |
Tags
| Parameter | Type | Description |
|---|---|---|
response_type | string | json returns a string array; text returns comma-separated tags |
limit | integer (1-128) | Page size, default 16 |
offset | integer | Pagination offset |
Related sips
| Parameter | Type | Description |
|---|---|---|
relationship | path string | same_as or derived_from |
ids | CSV UUIDs | Required source sip UUIDs |
response_type | string | json or text, default json |
limit | integer (1-128) | Page size, default 16 |
offset | integer | Pagination offset |
Response formats
Use response_type=json for structured objects and arrays. Use response_type=text when sending results to MCP clients or LLM workflows that do not need JSON syntax.
Code
MCP Server
Server URL: https://api.cafecito.tech/espresso/mcp
Espresso endpoints are exposed as hosted MCP tools for AI agent integration. See the MCP Integration guide for client setup patterns.
Examples
Below are real-world examples. Replace YOUR-API-KEY with the key you generated in the developer portal.
1. Health check
2. List tags
3. Filter events by tag and date
4. Semantic event search
5. Search signals as plain text
6. Fetch related sips
Status codes
200- Matching data returned204- Empty result set400- Invalid query parameters or malformed UUID401- Missing or invalid API key429- Rate limit exceeded500- Database or embedder error

