MCP client setup
Query your Trove records from Cursor (or any MCP client that supports Streamable HTTP). Trove exposes three core record tools backed by the internal query API, plus additional tools registered by loaded modules — see MCP query planning.
Prerequisites
- Build Trove and configure
[http].listen— see Quick Start. troverunning with a populated journal (capture records via HTTP ingest or Shortcuts first).- Default HTTP gateway address:
:8080(MCP atPOST /mcpon the same port).
Connect Cursor
Create .cursor/mcp.json in your project root, or edit ~/.cursor/mcp.json for
a global setup. A committed example lives at
examples/mcp/cursor-mcp.json.
{
"mcpServers": {
"trove": {
"url": "http://127.0.0.1:8080/mcp"
}
}
}
Adjust the host and port to match [http].listen in your config. Reload Cursor
(Settings → MCP, or restart the editor) after saving.
Verify the connection
- Open Cursor Settings → MCP. The
troveserver should show as connected. - Confirm at least 3 core tools are listed:
search_records— FTS5 keyword search over folded recordsget_record— fetch one record byrecord_reflist_incomplete_records— records awaiting classification
- When
capture-classifieris loaded, also expect module-specific tools. - In chat, ask the agent to call
search_recordswith a keyword from a captured record, orlist_incomplete_recordsto find unclassified captures.
If the server fails to connect, check that trove is running and that nothing
else is bound to the MCP port.
Available tools
| Tool | Purpose |
|---|---|
search_records |
Keyword search with optional type_prefix, source, time_from, time_to, include_deleted |
get_record |
Single record by record_ref (optional version) |
list_incomplete_records |
Records with completeness = incomplete, optional source and limit |
Module tools (when loaded): additional tools from modules that register
[[mcp.tools]] in their manifest.
Tool arguments use RFC3339 timestamps where a time range is accepted.
Network and auth
By default MCP has no authentication. When [http.auth].validator is set
(e.g. module.http-gateway.bearer), configure your MCP client to send
Authorization: Bearer <token> on requests to /mcp. See
network auth planning.
Common setups:
- Local development —
http://127.0.0.1:8080/mcpwhiletroveruns on the same machine as Cursor. - Tailscale — point
urlat your tailnet hostname with/mcppath if Trove runs on a home server (recommended for remote access). - Reverse proxy — terminate TLS in front of
[http].listenand use anhttps://URL inmcp.json.
Do not expose an unauthenticated MCP endpoint on the public internet.
See also
- Query concept — RPC and tool design
- Configuration —
[http].listenin TOML - iOS Shortcuts — capture records to query later