Context
AI agents and coding tools (Claude Code, Cursor, Windsurf, GitHub Copilot) increasingly use the Model Context Protocol (MCP) to interact with data sources. HyperbyteDB should expose an MCP server so AI can query time-series data, inspect schema, and run TimeseriesQL directly — without a human intermediary.
Deliverables
Core MCP Server
- Implement an MCP server that listens on a configurable transport (stdio for local agents, or SSE for remote).
- Follow the MCP specification for tool definitions, resource exposure, and prompts.
Tools (MCP Tools)
| Tool |
Description |
Inputs |
query |
Execute TimeseriesQL and return JSON results |
db, query, optional epoch, chunked |
list_databases |
List all databases |
— |
list_measurements |
List measurements in a database |
db |
list_tag_keys |
List tag keys for a measurement |
db, measurement |
list_field_keys |
List field keys for a measurement |
db, measurement |
schema |
Get full schema description for a database |
db |
write |
Write line protocol data |
db, data, optional precision |
health |
Check server status |
— |
Resources (MCP Resources)
hyperbytedb://databases — list of databases
hyperbytedb://{db}/measurements — measurements in a DB
hyperbytedb://{db}/{measurement}/schema — schema for a measurement
hyperbytedb://health — server health
Configuration
Add an [mcp] config section:
| Key |
Type |
Default |
Description |
enabled |
boolean |
false |
Enable MCP server |
transport |
string |
"stdio" |
Transport: stdio or sse |
port |
integer |
8087 |
SSE port (if transport = "sse") |
bind_address |
string |
"127.0.0.1" |
Bind address for SSE transport |
Auth integration
When [auth] enabled = true, MCP tools that mutate data (write) or access admin-level info should require credentials via the MCP session handshake.
Documentation
docs/user-guide/mcp.md — MCP setup, tool reference, AI client configuration examples
- Add row to
docs/user-guide/index.md reading order
References
Priority
P1 — High value for AI/developer workflows
Context
AI agents and coding tools (Claude Code, Cursor, Windsurf, GitHub Copilot) increasingly use the Model Context Protocol (MCP) to interact with data sources. HyperbyteDB should expose an MCP server so AI can query time-series data, inspect schema, and run TimeseriesQL directly — without a human intermediary.
Deliverables
Core MCP Server
Tools (MCP Tools)
querydb,query, optionalepoch,chunkedlist_databaseslist_measurementsdblist_tag_keysdb,measurementlist_field_keysdb,measurementschemadbwritedb,data, optionalprecisionhealthResources (MCP Resources)
hyperbytedb://databases— list of databaseshyperbytedb://{db}/measurements— measurements in a DBhyperbytedb://{db}/{measurement}/schema— schema for a measurementhyperbytedb://health— server healthConfiguration
Add an
[mcp]config section:enabledfalsetransport"stdio"stdioorsseport8087transport = "sse")bind_address"127.0.0.1"Auth integration
When
[auth] enabled = true, MCP tools that mutate data (write) or access admin-level info should require credentials via the MCP session handshake.Documentation
docs/user-guide/mcp.md— MCP setup, tool reference, AI client configuration examplesdocs/user-guide/index.mdreading orderReferences
src/adapters/http/auth_middleware.rssrc/application/query_service.rssrc/config.rsPriority
P1 — High value for AI/developer workflows