MCP server for executing code against CDC and biomedical APIs with support for REST, GraphQL, and SPARQL endpoints. Provides sandboxed V8 isolate execution with auto-staging of large responses to SQLite.
Server defines 4 tools with detailed descriptions and parameter schemas using Zod. Naming follows verb_noun pattern (search, execute). Descriptions are comprehensive (200-400 chars) and explain WHEN to use each tool. However, critical gaps exist: (1) Output schemas are NOT documented, no structured return type definitions visible for any tool; (2) Error handling is absent, no guidance on what errors can occur or how to recover; (3) Tool composition is unclear, three separate execute tools (REST, GraphQL, SPARQL) with identical names create ambiguity for LLM selection; (4) Parameter descriptions lack constraints (e.g., max_results accepts 'number' but no min/max bounds stated in schema). Catalog-search-tool.ts shows good parameter documentation but execute tools lack input validation examples.
Execute JavaScript code against GraphQL APIs in a sandboxed V8 isolate. Code runs with: gql.query(queryString, variables?) to execute GraphQL queries, schema.types(), schema.type(), schema.search() for introspection helpers, db.stage() and db.queryStaged() for staging large responses to SQLite. Optionally supports hybrid GraphQL+REST mode with api.get/api.post when restApiFetch is configured. Supports optional workspace parameter for shared cross-server staging. API keys never enter the isolate — all HTTP goes through the host's gqlFetch.
Execute JavaScript code against SPARQL endpoints in a sandboxed V8 isolate. Code runs with: sparql.query(queryString, opts?) to run SELECT/CONSTRUCT/DESCRIBE queries returning array of plain {variable: value} rows, sparql.ask(queryString) to run ASK queries returning boolean, sparql.raw(queryString, opts?) to return unparsed {head, results} envelope, prefixes object with common ontology prefixes (rdfs, owl, xsd, skos, dcterms, void, obo, uberon, go, ncbigene, efo, obi, sio, up, ensembl, bgee), prefixHeader pre-built PREFIX block. Large SPARQL responses (>30KB) are auto-staged into SQLite. The endpoint URL never enters the isolate — all HTTP goes through the host's sparqlFetch.
Execute JavaScript code against REST APIs in a sandboxed V8 isolate. Code runs with: api.get(path, params) for GET requests, api.post(path, body, params) for POST requests, searchSpec(query) to search the API catalog, listCategories() to list endpoint categories, getEndpoint(path) to get full endpoint docs. Path params like /lookup/{id} are auto-interpolated from params. Large responses (>100KB) are auto-staged to SQLite; check result.__staged and use {prefix}_query_data to explore. Supports optional workspace parameter for shared cross-server staging.
Search the API catalog (catalog mode) or OpenAPI spec (OpenAPI mode). Returns matching endpoints with full parameter documentation. Use this to discover API capabilities before calling {prefix}_execute. In catalog mode: accepts query/category/max_results parameters and performs keyword-based search over static ApiCatalog. In OpenAPI mode: accepts code parameter for agent-written JavaScript with access to searchPaths(), listTags(), getOperation(), describeOperation() helpers and the full frozen spec object.
Output schemas not documented. No structured return type definitions visible for any tool. LLMs cannot plan downstream operations or extract fields without knowing response structure.
Three tools named 'cdc_execute' (REST, GraphQL, SPARQL variants) create ambiguity. LLM cannot distinguish which to call without reading full descriptions. Should be cdc_execute_rest, cdc_execute_graphql, cdc_execute_sparql.
No error handling guidance. Descriptions do not explain what errors can occur (e.g., invalid JavaScript, API timeout, sandbox violation) or how to recover. Agents cannot self-correct on failure.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 43 | 2026-07-28+ | v2 |
Parameter 'max_results' in cdc_search accepts number type but schema lacks min/max bounds. Description states 'default 10, max 25' but Zod schema does not enforce this. LLM could pass 1000.
Code parameter in execute tools accepts arbitrary JavaScript. No description of sandbox limitations, available globals, or what happens if code throws. Security and usability implications unclear.