A Model Context Protocol server for querying HubDB databases using SQL, discovering tables and columns
This HubDB MCP server provides three data access tools with adequate but inconsistent quality. Tool naming follows the verb_noun pattern (get_*, run_*), which is correct. However, descriptions vary in depth and precision. The schema definitions are visible and properly typed, but parameter descriptions are minimal. Error handling exists but lacks recovery guidance. The server is STDIO-only, which limits its architecture score despite reasonable tool design. Overall: solid foundation, but falls short of production grade due to sparse parameter documentation and missing error guidance patterns.
Retrieves a list of fields, dimensions, or measures (as columns) for an object, entity or collection (table). Use the `hubdb_get_tables` tool to get a list of available tables. The output of the tool will be returned in CSV format, with the first line containing column headers.
Retrieves a list of objects, entities, collections, etc. (as tables) available in the data source. Use the `hubdb_get_columns` tool to list available columns on a table. Both `catalog` and `schema` are optional parameters. The output of the tool will be returned in CSV format, with the first line containing column headers.
Execute a SQL SELECT statement.
Parameter descriptions are minimal and lack actionable constraints. 'catalog' and 'schema' described as 'The catalog name' / 'The schema name' do not explain format, optionality rationale, or when to use them.
hubdb_run_query description does not explain what output format to expect, error conditions, or SQL dialect limitations beyond listing allowed clauses. It mentions 'CSV format' in the description, but this critical detail should appear in explicit output schema documentation as well.
No output schema is documented. All three tools return CSV text in McpSchema.TextContent, but LLMs have no structured specification of what fields/columns they will receive. Rubric states: 'Document the output schema. LLMs need to know what fields to expect.'
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 51 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Error handling is present (try-catch wraps with RuntimeException), but error messages lack recovery guidance. A raw error code or stack trace gives the agent nothing to act on.' Current: 'throw new RuntimeException("ERROR: " + ex.getMessage());' provides no actionable next steps.
hubdb_get_columns requires 'table' parameter but catalog/schema are optional. The description does not explain dependency: when catalog/schema are omitted, what happens? Does the tool search all catalogs/schemas? Or does it use a default? This violates 'Undocumented dependencies cause silent misuse.'
Tools accept free-form string parameters (catalog, schema, table, sql) with no validation constraints documented or enforced in descriptions.
No pagination support. hubdb_get_tables and hubdb_get_columns return full result sets. Without pagination, large results blow the context window.' If a database has 1000+ tables, this tool will return them all, exhausting context.
hubdb_get_columns lists no operation for filtering by column type, name pattern, or other criteria. If a table has 100+ columns, returning all is wasteful. No limit parameter exists to cap results.