AI interface to your Data
CameoDB features a fully-compliant Model Context Protocol (MCP) server built directly into the core engine. Give Claude, Cursor, or Windsurf instant, high-speed access to your indexes.
cable Client Configurations
Note: CameoDB defaults to port 9480. The MCP endpoints are nested natively under the /mcp path.
Windsurf / Cursor
SSE TransportAdd to .windsurf/mcp.json or Cursor MCP settings:
{
"mcpServers": {
"cameodb": {
"url": "http://localhost:9480/mcp/sse",
"transport": "sse"
}
}
}
Claude Desktop
Curl BridgeClaude currently requires a curl bridge for SSE transport:
{
"mcpServers": {
"cameodb": {
"command": "curl",
"args": [
"-N",
"-H", "Accept: text/event-stream",
"http://localhost:9480/mcp/sse"
]
}
}
}
build Available MCP Tools
6 specialized tools exposed securely (Read-Only) to the AI agent.
Execute full-text search on a single CameoDB index.
- index (req)
- query (req)
- limit (opt)
- fields (opt array)
"arguments": {
"index": "papers",
"query": "machine learning AND year:[2020 TO 2024]",
"limit": 10,
"fields": ["title", "author"]
}
Execute federated search across multiple CameoDB indexes with per-index field projection.
"arguments": {
"indexes": [
{"index": "papers", "fields": ["title", "author"]},
{"index": "books", "fields": ["title", "isbn"]}
],
"query": "rust programming",
"limit": 20
}
Validates query syntax against the schema. Returns fuzzy "did you mean" suggestions for unknown fields and syntax tips.
Retrieve schema and statistics for a single index.
List all available indexes and their schemas.
Document counts, size, and aggregated cluster metadata.
account_tree Implementation & Transport
-
dnsShared-Port Architecture Runs in the same binary as CameoDB, sharing the same
AppStateand actor system. No sidecars needed. -
ruleStrict Spec Compliance (2024-11-05) Implements proper JSON-RPC 2.0 over SSE. Emits structured
endpointandmessageevents. -
boltAsynchronous Processing Client POSTs to
/mcp/messagesare non-blocking. Server immediately returns202 Acceptedand processes via backgroundtokio::spawn. -
hourglass_emptySession Management Automatic session registry with a 5-minute timeout cleanup. Keepalive messages sent every 15 seconds to maintain connection.
Agent Query Syntax
Agents use the validate_query tool to learn this dynamically, but here is the reference.
| Syntax Type | Example Format |
|---|---|
| Basic Search | machine learning |
| Field-Targeted | title:rust |
| Phrase | title:"rust programming" |
| Boolean Operators | (title:rust OR title:go) AND year:[2020 TO 2024] |
| Range / Numeric | price:[10.0 TO *] |
| Date Comparisons | created_at:>2024-01-01 |
| Inline Modifiers | title:rust return title,author limit 5 |