turbopuffer-mcp
A Turbopuffer MCP server built with dedalus-mcp and DAuth-style credential exchange.
This server follows the same DAuth north-star pattern as x-api-mcp:
- Credentials are provided by clients at runtime.
- The server declares a
ConnectionwithSecretKeys. - Tool calls dispatch through Dedalus secure connection handles.
Features
- DAuth-compatible API key authentication (
TURBOPUFFER_API_KEY). - Configurable Turbopuffer region/base URL via
TURBOPUFFER_BASE_URL. - Read + write tool coverage for the core Turbopuffer API.
- Includes a smoke ping tool for quick MCP handshake validation.
Setup
- Create a Turbopuffer API key.
- Copy env template:
cp .env.example .env
Required:
TURBOPUFFER_API_KEY(provided by the MCP client via DAuth credentials in production flows)
Optional:
TURBOPUFFER_BASE_URL(defaults tohttps://gcp-us-central1.turbopuffer.com)DEDALUS_AS_URL(defaults tohttps://as.dedaluslabs.ai)HOST(defaults to127.0.0.1)PORT(defaults to8080)
Run
uv run python src/main.py
Tool Surface
turbopuffer_list_namespacesturbopuffer_get_namespace_metadataturbopuffer_get_namespace_schematurbopuffer_update_namespace_schematurbopuffer_writeturbopuffer_queryturbopuffer_multi_queryturbopuffer_explain_queryturbopuffer_delete_namespaceturbopuffer_cache_warmturbopuffer_measure_recallturbopuffer_export_documents(deprecated Turbopuffer endpoint compatibility)smoke_ping
Notes
- Turbopuffer has both
/v1and/v2endpoints. This server mirrors the live docs/API split:- Namespace listing/metadata/schema/cache-warm/recall/export use
/v1. - Write/query/delete/explain use
/v2.
- Namespace listing/metadata/schema/cache-warm/recall/export use
- The export endpoint is deprecated in Turbopuffer docs in favor of paging query APIs, but is still exposed here for compatibility.