opendata-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@opendata-mcp find datasets about air quality in New York"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
opendata-mcp
A Model Context Protocol server for the OpenData Platform API. Tools are generated dynamically from the bundled OpenAPI 3.1 spec — every endpoint is exposed as an MCP tool with a typed input schema and a transparent HTTP handler.
GET endpoints: 76 — exposed without auth (the API serves them unauthenticated).
Write endpoints (POST / PUT / PATCH / DELETE): 23 — require a Bearer token via
OPENDATA_API_KEY.Built on
@modelcontextprotocol/sdk(TypeScript) with stdio transport.
Install
Uses pnpm (pinned via packageManager in package.json so corepack enable is enough to get the right version).
pnpm install
pnpm run buildRelated MCP server: OpenAPI MCP Server
Configure
Copy .env.example → .env (or set in your MCP client config) and fill in:
OPENDATA_BASE_URL=https://api.tryopendata.ai # required at call time
OPENDATA_API_KEY=od_live_xxx # required for writes
# OPENDATA_READ_ONLY=true # optional: only register GET tools
# OPENDATA_TIMEOUT_MS=30000 # optional: per-request timeout
# OPENDATA_MAX_ATTEMPTS=3 # optional: total HTTP attempts (retries are bounded; see below)
# OPENDATA_LOG_LEVEL=info # optional: off|error|info|debugSecrets are never read from the repo. .env is gitignored; .env.example ships placeholders only.
Run
# Dev (tsx, no build step)
pnpm run dev
# Production (after build)
pnpm startThe server speaks MCP over stdio — wire it into any MCP-capable client. Example client config (Claude Desktop / similar):
{
"mcpServers": {
"opendata": {
"command": "node",
"args": ["/absolute/path/to/opendata-mcp/dist/index.js"],
"env": {
"OPENDATA_BASE_URL": "https://api.tryopendata.ai",
"OPENDATA_API_KEY": "od_live_xxx"
}
}
}
}Test
pnpm test # unit tests (mocked fetch — offline-safe)
pnpm run typecheck # tsc --noEmitLive tests against the real API run only when OPENDATA_BASE_URL is set:
OPENDATA_BASE_URL=https://api.tryopendata.ai pnpm testCI runs the unit suite on every push/PR (badge above). The live smoke job runs on a daily schedule (and on pushes to main) only if the repo has OPENDATA_BASE_URL (and optionally OPENDATA_API_KEY) configured as Actions secrets — it's continue-on-error: true so a transient upstream outage doesn't show the repo as red.
How tool generation works
At startup the server:
Loads
openapi.json(OpenAPI 3.1, bundled).Walks every
(path, method)pair (skippingdeprecatedoperations and skipping non-GET whenOPENDATA_READ_ONLY=true).Converts each operation's path + query parameters (and JSON request body for writes) into a Zod input schema via
openapi-to-zod.ts.Registers one MCP tool per operation. The tool name is the OpenAPI
operationId(sanitized to[a-zA-Z0-9_-]{1,64}); the description isMETHOD path (auth?) — summary — description.On invoke, builds the URL (substituting path params + appending the query string), attaches
Authorization: Bearer ${OPENDATA_API_KEY}for non-GET, sends the request, and returns the response as a text MCPcontentblock.
The auth contract is enforced at the client layer (src/api-client.ts):
GET → no auth header is sent. If you pass a key it's still ignored.
Non-GET →
OPENDATA_API_KEYis required; the request fails fast with a clear error if it's missing.
Logging, retries, and shutdown
Structured logging to stderr (stdout is reserved for the MCP protocol). One JSON object per line:
{ts, level, msg, ...fields}. Tuned viaOPENDATA_LOG_LEVEL(off|error|info|debug, defaultinfo). Every tool invocation carries a shortrid(request id) that also surfaces in any error message returned to the client — so a user can quote anERROR (rid=…)and you can grep it in logs.Bounded retries on transient failures only:
502 / 503 / 504and network errors are retried with jittered exponential backoff (200ms → 600ms → 1.4s, capped).500and any4xxare never retried — a 500 means "I tried, it broke" and retrying just hammers a server that already gave its answer; a 4xx means the request is wrong and retrying won't help. Total attempts viaOPENDATA_MAX_ATTEMPTS(default 3).Graceful shutdown on
SIGINT/SIGTERM: the MCP transport is closed beforeprocess.exitso any in-flight tool calls have a chance to land.
Layout
src/
index.ts # entry — MCP server, stdio transport
openapi-loader.ts # loads + normalizes the bundled spec
openapi-to-zod.ts # OpenAPI schema → Zod schema converter
api-client.ts # fetch wrapper + auth contract
tools.ts # generates MCP tool defs from normalized ops
__tests__/
tools.test.ts # unit tests (mocked fetch)
live.test.ts # live tests (skipped unless OPENDATA_BASE_URL set)
openapi.json # bundled OpenAPI 3.1 specLicense
MIT
Available Tools
99 toolsadd_comment_v1_requests__request_id__comments_postC
POST /v1/requests/{request_id}/comments (auth: Bearer OPENDATA_API_KEY) — Add Comment — Add a comment to the request thread. Authenticated users only.
Inputs: request_id (required), body (required).
approve_request_v1_requests__request_id__approve_postA
POST /v1/requests/{request_id}/approve (auth: Bearer OPENDATA_API_KEY) — Approve Request — Approve a dataset request (pure status change, no pipeline trigger).
Admin-only. Transitions status to approved. The actual dataset creation and ingestion happens separately via the fulfill endpoint.
Inputs: request_id (required), body.
check_slug_availability_v1_users__user_id__views_check_slug_getA
GET /v1/users/{user_id}/views/check-slug (public) — Check whether a slug is available for the current user — Slug-availability probe used by the sandbox save dialog.
Auth + ownership: the URL clerk_id must match the caller. Returns
{available, normalized_slug, reason} where reason is one of
"taken" | "reserved" | "invalid" | null.
Inputs: user_id (required), slug (required).
compose_download_csv_v1_datasets__provider___dataset__compose_doA
GET /v1/datasets/{provider}/{dataset}/compose/download.csv (public) — Download a composed join as CSV — Stream a composed CSV of provider/dataset joined with target.
Kept narrow for v1: single join, single join column, no computed columns,
no filters. Mirrors the shape of POST /compose/preview so users can
preview then download without tweaking parameters.
Inputs: provider (required), dataset (required), target (required), source_column (required), +1 more.
compose_preview_v1_datasets__provider___dataset__compose_previewA
POST /v1/datasets/{provider}/{dataset}/compose/preview (auth: Bearer OPENDATA_API_KEY) — Preview a compose/join without saving it — Execute a single-join preview against provider/dataset.
Kept narrow: exactly one join spec per request. Multi-join composition would compound cardinality risk during preview — we want users to vet each join in isolation before they chain them.
Preflight: when the base dataset has more than
CARDINALITY_PREFLIGHT_BASE_ROW_THRESHOLD rows, we run a COUNT(*) on
the joined query first. If the count exceeds
CARDINALITY_PREFLIGHT_HARD_LIMIT we refuse with 400. If it's above
the dynamic warning threshold we still run the preview but emit a
cardinality_warning and cap rows at CARDINALITY_PREFLIGHT_ROW_CAP.
Inputs: provider (required), dataset (required), body (required).
create_and_publish_view_v1_user_views_create_and_publish_postA
POST /v1/user-views/create-and-publish (auth: Bearer OPENDATA_API_KEY) — Create a view and publish 1.0.0 atomically — Create a view and immediately publish 1.0.0.
Atomic: the create + publish run inside a single transaction with one
final commit. If publish fails for any reason, the create rolls back —
no orphan draft is left behind. release_note comes from the request
body (see :class:UserViewCreate).
Inputs: body (required).
create_draft_figure_v1_figures_drafts_postA
POST /v1/figures/drafts (auth: Bearer OPENDATA_API_KEY) — Create a draft figure (snapshot mode) — Create a snapshot draft figure on the authenticated user's profile.
Designed for external clients (MCP today, web sandbox tomorrow) that already have rendered data in hand and want to hand the user off into the figure editor.
Behavior:
Caps
inline_dataat 1000 rows / 512KB serialized. Anything larger is truncated andtruncated=trueis returned.Per-user soft cap of 100 drafts per
origin. Over-limit clients get a 429 asking them to delete or publish before creating more.Idempotent within 60 seconds on the SHA256 of
(viz_spec, inline_data, creator_id). Re-posts inside the window return the existing draft id.Creates the row as a private, standalone figure. Pre-p…
Inputs: body (required).
create_view_v1_user_views_postA
POST /v1/user-views (auth: Bearer OPENDATA_API_KEY) — Create a user view — Create a new user view.
Slugs are unique per creator. Defaults to draft (is_draft=True).
Reserved slugs (latest, versions, etc., or any starting with a
digit) are rejected with 400.
Inputs: body (required).
cross_dataset_query_v1_query_postA
POST /v1/query (auth: Bearer OPENDATA_API_KEY) — Execute SQL query across multiple datasets — Execute a SQL query across multiple datasets.
Table references use provider.dataset or provider/dataset notation.
Each referenced dataset's parquet file is loaded into DuckDB as a named table.
Only SELECT statements are allowed.
Inputs: body (required).
delete_comment_v1_requests__request_id__comments__event_id__deleA
DELETE /v1/requests/{request_id}/comments/{event_id} (auth: Bearer OPENDATA_API_KEY) — Delete Comment — Soft-delete a comment (sets deleted_at). Author or admin only.
Inputs: request_id (required), event_id (required).
delete_view_v1_user_views__clerk_id___slug__deleteC
DELETE /v1/user-views/{clerk_id}/{slug} (auth: Bearer OPENDATA_API_KEY) — Delete a user view
Inputs: clerk_id (required), slug (required).
discover_datasets_v1_discover_getA
GET /v1/discover (public) — Discover Datasets — Discover datasets optimized for LLM agents.
Returns enriched dataset metadata including column schemas, canonical questions, methodology summaries, and quality scores. Requires authentication.
Key differences from /search:
Always uses hybrid search with relevance sorting
Includes enriched metadata (columns, canonical questions, methodology)
Smaller default limit (5) for focused results
Requires authentication (designed for API/agent access)
No pagination (use /search for browsing)
Inputs: q (required), provider, format, category, +3 more.
edit_comment_v1_requests__request_id__comments__event_id__patchA
PATCH /v1/requests/{request_id}/comments/{event_id} (auth: Bearer OPENDATA_API_KEY) — Edit Comment — Edit a comment. Author or admin only. Sets edited_at.
Inputs: request_id (required), event_id (required), body (required).
export_dataset_as_yaml_v1_datasets__provider___dataset__export_gA
GET /v1/datasets/{provider}/{dataset}/export (public) — Export Dataset As Yaml — Export dataset configuration as YAML.
Returns the dataset configuration in dataset.yaml format, suitable for re-importing via the sync command or POST /datasets endpoint.
The exported YAML can be used to:
Create a YAML-based dataset configuration
Back up dataset configuration
Share dataset definitions across environments
Migrate from API-created to YAML-sourced datasets
Note: Only exports configuration, not the actual data.
Inputs: provider (required), dataset (required).
follow_user_v1_users__clerk_id__follow_putA
PUT /v1/users/{clerk_id}/follow (auth: Bearer OPENDATA_API_KEY) — Follow a user — Follow clerk_id. Idempotent — repeat calls return current count.
Inputs: clerk_id (required).
fulfill_request_v1_requests__request_id__fulfill_postB
POST /v1/requests/{request_id}/fulfill (auth: Bearer OPENDATA_API_KEY) — Fulfill Request — Fulfill a dataset request by linking it to a created dataset. Admin-only.
Inputs: request_id (required), body (required).
get_activation_v1_me_activation_getA
GET /v1/me/activation (public) — Get user activation signals — Get user activation signals for SSR branching.
Returns flags indicating whether the user has engaged with various parts of the platform. Used by SSR to decide which components to render.
Authentication: Requires Clerk authentication (browser session or JWT).
Inputs: no named parameters.
get_bridges_v1_graph_bridges_getC
GET /v1/graph/bridges (public) — Get Bridges — Get top bridge datasets by betweenness centrality.
Inputs: limit.
get_category_detail_v1_categories__slug__getA
GET /v1/categories/{slug} (public) — Get category with datasets — Get category details with paginated datasets.
Returns the category metadata along with a paginated list of datasets in that category.
Sort options:
stars: Most starred datasets first (default)
queries: Most queried datasets first (requires backend, falls back to stars)
updated: Most recently updated first
name: Alphabetical by name
No authentication required - this is a public endpoint.
Inputs: slug (required), limit, offset, sort.
get_communities_v1_graph_communities_getB
GET /v1/graph/communities (public) — Get Communities — Get community listing with top datasets and dominant topics.
Inputs: limit.
get_community_datasets_v1_graph_communities__community_id__datasB
GET /v1/graph/communities/{community_id}/datasets (public) — Get Community Datasets — List datasets in a graph community, ordered by importance.
Inputs: community_id (required), limit, offset.
get_dataset_activity_v1_datasets__provider___dataset__activity_gA
GET /v1/datasets/{provider}/{dataset}/activity (public) — Get Dataset Activity — Get recent activity events for a dataset.
Returns system events (enrichment, ingestion, schema changes) in reverse chronological order. Used for the activity feed on dataset pages.
Inputs: provider (required), dataset (required), limit.
get_dataset_by_path_v1_datasets__provider___dataset__getA
GET /v1/datasets/{provider}/{dataset} (public) — Get Dataset By Path — Get dataset data (flat) or subdataset list (hierarchical).
For flat datasets: Returns paginated data with full query support. For hierarchical datasets: Returns list of subdatasets.
Metadata is available at GET /v1/datasets/{provider}/{dataset}/meta
Format Selection (in priority order):
Accept header: application/json, text/csv, text/tab-separated-values, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.apache.parquet
?format query param: json, csv, tsv, xlsx, parquet
csv/tsv/xlsx/parquet always return file attachments with the full dataset (size-guarded at MAX_DOWNLOAD_SIZE_BYTES). ?format=json also returns the full dataset as a JSON file; without ?format=json, JSON …
Inputs: provider (required), dataset (required), format, limit, +14 more.
get_dataset_column_detail_v1_datasets__provider___dataset__columA
GET /v1/datasets/{provider}/{dataset}/columns/{column_name} (public) — Get Dataset Column Detail — Get detailed statistics for a single column.
Returns full value list (up to 1000) for low-cardinality columns.
Inputs: provider (required), dataset (required), column_name (required).
get_dataset_columns_v1_datasets__provider___dataset__columns_getA
GET /v1/datasets/{provider}/{dataset}/columns (public) — Get Dataset Columns — Get column metadata and statistics for a dataset.
Returns column names, types, distinct counts, value distributions, and row count. Uses sampling for efficient stats on large datasets.
When a view is active (explicitly or via default_view), returns columns as they appear in the view output, including computed and joined columns with proper types.
Inputs: provider (required), dataset (required), view.
get_dataset_meta_v1_datasets__provider___dataset__meta_getA
GET /v1/datasets/{provider}/{dataset}/meta (public) — Get Dataset Meta — Get dataset metadata without data.
Returns metadata about the dataset including schema, available views, and query capabilities. Use this endpoint to understand dataset structure before fetching data.
Inputs: provider (required), dataset (required).
get_dataset_sources_v1_datasets__provider___dataset__sources_getA
GET /v1/datasets/{provider}/{dataset}/sources (public) — Get Dataset Sources — List all source URLs for a dataset.
For multi-source datasets, returns each source with its description. For aggregator datasets, returns the URL template and variable info. For single-source datasets, returns the single source URL.
Inputs: provider (required), dataset (required).
get_dataset_stats_v1_graph_datasets__provider___dataset__stats_gC
GET /v1/graph/datasets/{provider}/{dataset}/stats (public) — Get Dataset Stats — Get graph-computed statistics for a dataset.
Inputs: provider (required), dataset (required).
get_dataset_view_v1_datasets__provider___dataset__views__name__gB
GET /v1/datasets/{provider}/{dataset}/views/{name} (public) — Get Dataset View — Get detailed configuration for a specific view on a dataset.
Includes all alias definitions, column projections, and lookup configurations for data enrichment.
Inputs: provider (required), dataset (required), name (required).
get_entity_datasets_v1_graph_entities__entity_type___entity_id__C
GET /v1/graph/entities/{entity_type}/{entity_id}/datasets (public) — Get Entity Datasets — Get datasets referencing a specific entity.
Inputs: entity_type (required), entity_id (required).
get_feed_v1_me_feed_getA
GET /v1/me/feed (public) — Get user activity feed — Get a feed of updates relevant to the user.
Returns dataset activity from providers the user follows, interleaved by time. Currently supports followed provider updates; user follow system is not yet available.
Feed Types:
followed: Dataset updates from providers you followpeople: Updates from users you follow (not yet available, returns empty)merged: Currently coerced tofollowed(the people feed is empty so the merge step would produce broken cursors).
Pagination:
Use the next_cursor from the response as the cursor parameter for the next page.
Authentication: Requires Clerk authentication (browser session or JWT).
Inputs: type, limit, cursor.
get_feed_v1_users_me_feed_getB
GET /v1/users/me/feed (public) — Activity feed of followed users — Activity from users the caller follows.
Inputs: limit, offset, since.
get_figure_v1_figures__figure_id__getA
GET /v1/figures/{figure_id} (public) — Get a figure by UUID — Get a figure by its UUID.
Returns full view details including viz_spec, transform_config, inline_data, origin, like_count, and is_liked_by_me.
Visibility: public figures are returned to anyone; private drafts are returned only to their creator. Non-owners get a 404 for private drafts (we don't leak existence).
Authentication: Optional. When authenticated, the creator can read their own drafts and is_liked_by_me reflects the user's like status.
Inputs: figure_id (required).
get_follow_status_v1_users__clerk_id__follow_status_getA
GET /v1/users/{clerk_id}/follow-status (public) — Check follow status — Return whether the caller is following clerk_id.
Inputs: clerk_id (required).
get_health_v1_graph_health_getA
GET /v1/graph/health (public) — Get Health — Get graph health and sync status.
Inputs: no named parameters.
get_join_paths_v1_graph_datasets__provider___dataset__join_pathsC
GET /v1/graph/datasets/{provider}/{dataset}/join-paths (public) — Get Join Paths — Discover multi-hop join paths from a dataset.
Inputs: provider (required), dataset (required), max_hops, min_confidence, +1 more.
get_neighbors_v1_graph_datasets__provider___dataset__neighbors_gC
GET /v1/graph/datasets/{provider}/{dataset}/neighbors (public) — Get Neighbors — Get direct 1-hop connections from a dataset.
Inputs: provider (required), dataset (required), edge_types, limit.
get_platform_stats_v1_stats_getA
GET /v1/stats (public) — Get platform statistics — Get platform-wide aggregate statistics including total providers, datasets, and rows.
Inputs: no named parameters.
get_provider_datasets_metadata_v1_providers__provider__datasets_B
GET /v1/providers/{provider}/datasets/metadata (public) — Get enriched metadata for all datasets — Get AI-enriched metadata (layman descriptions) for all datasets in a provider.
Inputs: provider (required).
get_provider_enriched_v1_providers__provider__enriched_getB
GET /v1/providers/{provider}/enriched (public) — Get enhanced provider details — Get provider details including AI-enriched metadata when available.
Inputs: provider (required).
get_provider_stats_v1_providers__provider__stats_getB
GET /v1/providers/{provider}/stats (public) — Get provider statistics — Get aggregate statistics for a provider including dataset count, total rows, and update info.
Inputs: provider (required).
get_provider_v1_providers__provider__getC
GET /v1/providers/{provider} (public) — Get Provider — Get provider details by slug.
Inputs: provider (required).
get_recommendations_v1_me_recommendations__kind__getA
GET /v1/me/recommendations/{kind} (public) — Get personalized recommendations — Get recommendations for datasets, providers, or users.
Returns personalized recommendations based on user's activity (starred datasets, followed providers, created views). Cold-start users get recommendations based on popularity rankings.
Recommendation Kinds:
datasets: Popular or topically-related datasetsproviders: Data providers similar to user's interestsusers: Users with similar taste in datasets
Authentication: Requires Clerk authentication (browser session or JWT).
Inputs: kind (required), limit, offset.
get_request_admin_detail_v1_requests__request_id__admin_getA
GET /v1/requests/{request_id}/admin (public) — Get Request Admin Detail — Get full admin detail view for a dataset request. Admin-only.
Inputs: request_id (required).
get_request_detail_v1_requests__request_id__getA
GET /v1/requests/{request_id} (public) — Get Request Detail — Public detail view of a dataset request.
Includes the linked-dataset slug when fulfilled, the submitter's display info, and the comment count. Caller's upvote state is included when authenticated.
Inputs: request_id (required).
get_schema_graph_v1_graph_datasets__provider___dataset__schema_gC
GET /v1/graph/datasets/{provider}/{dataset}/schema-graph (public) — Get Schema Graph — Get the schema-level subgraph around a dataset for D3 visualization.
Inputs: provider (required), dataset (required), depth, limit.
get_subdataset_by_path_v1_datasets__provider___dataset___subdataA
GET /v1/datasets/{provider}/{dataset}/{subdataset} (public) — Get Subdataset By Path — Get subdataset with inline data.
Returns subdataset metadata with paginated data rows.
Pagination:
Use
cursorfor keyset pagination (efficient for large datasets with views)The response includes
next_cursorif more data is availablePass the
next_cursorvalue ascursorin the next request
Inputs: provider (required), dataset (required), subdataset (required), limit, +14 more.
get_subdataset_meta_v1_datasets__provider___dataset___subdatasetA
GET /v1/datasets/{provider}/{dataset}/{subdataset}/meta (public) — Get Subdataset Meta — Get subdataset metadata without data.
Returns metadata about the subdataset including schema and available views.
Inputs: provider (required), dataset (required), subdataset (required).
get_subgraph_v1_graph_subgraph_getA
GET /v1/graph/subgraph (public) — Get Subgraph — Get a seeded subgraph for the graph explorer.
When seed_type/seed_id are omitted, returns a sample of the full graph. For dataset seeds, seed_id should be 'provider/slug' (e.g. 'bls/cpi-u').
Inputs: seed_type, seed_id, depth, limit.
get_top_callers_v1_views___username___slug__top_callers_getA
GET /v1/views/@{username}/{slug}/top-callers (public) — Top callers for a view in a time window — Top-5 named callers + an "unattributed" bucket for the last N days.
Inputs: username (required), slug (required), window.
get_user_activity_v1_users__clerk_id__social_activity_getC
GET /v1/users/{clerk_id}/social-activity (public) — Public social activity timeline for a user — Public timeline for one user.
Inputs: clerk_id (required), limit, offset.
get_user_activity_v1_users__user_id__activity_getB
GET /v1/users/{user_id}/activity (public) — Get User Activity — Get paginated activity feed for a user.
Returns a list of activities (dataset creation, starring, syncing, etc.) ordered by most recent first.
Inputs: user_id (required), limit, offset, type.
get_user_by_query_v1_users_getB
GET /v1/users (public) — Look up user by username — Look up a user by username.
When username is provided, returns the matching user's public profile
(same shape as GET /v1/users/{user_id}).
This endpoint is public and does not require authentication.
Inputs: username.
get_user_profile_v1_users__user_id__getA
GET /v1/users/{user_id} (public) — Get user public profile — Get a user's public profile.
Returns the user's public information including dataset count, starred count, and public collection count.
This endpoint is public and does not require authentication.
Inputs: user_id (required).
get_versioned_view_meta_v1_views___username___slug_with_version_B
GET /v1/views/@{username}/{slug_with_version}/meta (public) — Get version metadata — Return metadata for the resolved version (display name, schema, etc.).
Inputs: username (required), slug_with_version (required).
get_versioned_view_v1_views___username___slug_with_version__getA
GET /v1/views/@{username}/{slug_with_version} (public) — Get versioned view data — Resolve a versioned view and execute its query against parquet.
Parses the frozen user_view_versions.config snapshot into a
UserViewConfig, looks up the dataset's parquet path, and routes the
query through the same execution path used by sandbox preview
(execute_user_view_config). Rows are recorded as a request_event so
the view_count trigger fires.
limit and offset are accepted on the URL; offset is currently
a no-op for keyset-paginated query_with_view (the executor uses an opaque
cursor instead). Honoring limit is the priority — a UI that wants
paging should land here once the executor exposes offset semantics.
Inputs: username (required), slug_with_version (required), limit, offset.
get_view_v1_user_views__clerk_id___slug__getB
GET /v1/user-views/{clerk_id}/{slug} (public) — Get a specific user view — Get a view by (clerk_id, slug).
Drafts are owner-only. Published views are public.
Inputs: clerk_id (required), slug (required).
get_view_v1_views__name__getC
GET /v1/views/{name} (public) — Get View — Get detailed configuration for a specific view.
Includes all alias definitions, column projections, and lookup configurations for data enrichment.
Inputs: name (required).
list_all_categories_v1_categories_getA
GET /v1/categories (public) — List all categories — List all data categories with dataset counts.
Returns categories that have at least one dataset, ordered by dataset count (most popular first).
Categories are derived from dataset metadata labels set during LLM enrichment.
No authentication required - this is a public endpoint.
Inputs: no named parameters.
list_changelog_v1_changelog_getA
GET /v1/changelog (public) — List changelog entries — List recent platform announcements.
Returns a paginated list of changelog entries, ordered by published_at descending (most recent first).
This is a public endpoint and does not require authentication.
Inputs: limit, offset.
list_datasets_v1_datasets_getA
GET /v1/datasets (public) — List Datasets — List all datasets with pagination.
Returns a lightweight summary of each dataset. Use the individual dataset endpoints to get full details including schema_info and column_metadata.
Inputs: limit, offset, status, sort, +1 more.
list_dataset_views_v1_datasets__provider___dataset__views_getA
GET /v1/datasets/{provider}/{dataset}/views (public) — List Dataset Views — List available views for a specific dataset.
Returns all views applicable to this dataset, including:
Inline views defined in dataset.yaml (spec.views field)
Global predefined views that match the dataset schema
Dataset views take priority over predefined views with the same name.
Inputs: provider (required), dataset (required).
list_directory_v1_directories_getA
GET /v1/directories (public) — List Directory — List and analyze a web directory.
Fetches the directory listing from the provided URL, parses the content to extract file and subdirectory entries, and analyzes the contents to suggest appropriate next actions.
The response includes a suggested_action field:
"discover": Directory contains data files ready to be added as datasets
"browse": Directory contains subdirectories to explore further
"mixed": Directory contains both data files and subdirectories
Results are cached for 5 minutes to reduce load on remote servers.
Use refresh=true to bypass the cache and fetch fresh data.
Args: request: FastAPI request for getting client IP url: URL of the directory to list (must be a valid HTTP/HTTPS URL) refresh: If true, by…
Inputs: url (required), refresh.
list_figures_v1_figures_getA
GET /v1/figures (public) — List figures (discovery feed) — List public figures for the discovery feed.
A figure is a user view with a viz_spec (visualization configuration) set. Results include viz_spec, like_count, and standard view metadata.
Sort options:
popular: ordered by like_count DESC, then created_at DESC
recent: ordered by created_at DESC
This endpoint is public and does not require authentication.
Inputs: sort, limit, offset.
list_followers_v1_users__clerk_id__followers_getA
GET /v1/users/{clerk_id}/followers (public) — List a user's followers — List users following clerk_id (newest first).
Inputs: clerk_id (required), limit, offset.
list_following_v1_users__clerk_id__following_getB
GET /v1/users/{clerk_id}/following (public) — List who a user is following — List users that clerk_id is following (newest first).
Inputs: clerk_id (required), limit, offset.
list_joinable_v1_datasets__provider___dataset__joinable_getA
GET /v1/datasets/{provider}/{dataset}/joinable (public) — List previewable joinable datasets — Return join targets for the compose/preview UI.
Filters out low-signal joins (date-only at low confidence, cross-community). Falls back to a small number of low-signal matches when the filter would produce an empty list so the UI still has something to render.
Public endpoint — matches the auth stance of other dataset-detail routes. Returns an empty target list (not 503) when Neo4j is unavailable.
Inputs: provider (required), dataset (required).
list_provider_datasets_v1_datasets__provider__getC
GET /v1/datasets/{provider} (public) — List Provider Datasets — List all datasets for a provider.
Inputs: provider (required), limit, offset, status, +1 more.
list_providers_v1_providers_getB
GET /v1/providers (public) — List Providers — List all data providers with dataset stats.
Inputs: limit, offset.
list_published_views_by_username_v1_users___username__views_getB
GET /v1/users/@{username}/views (public) — List a user's published views (portfolio) — List published views for a profile portfolio.
include_drafts=true is only honored when the caller is the owner;
other callers see published views only. Username casing is canonicalized
via a 301 if necessary.
Inputs: username (required), limit, offset, sort, +1 more.
list_request_events_v1_requests__request_id__events_getA
GET /v1/requests/{request_id}/events (public) — List Request Events — Paginated thread events for a single request (oldest-first).
Soft-deleted comments come back as tombstones (body=null, deleted_at set) so the frontend can render "[deleted on ]" without losing position in the timeline.
Inputs: request_id (required), limit, offset.
list_requests_v1_requests_getA
GET /v1/requests (public) — List Requests — List dataset requests in the public queue.
Sorted by demand (vote count) descending by default. Pass sort=newest to sort by creation time instead. If the caller is authenticated, each entry includes whether they've upvoted it.
Inputs: limit, offset, status, sort, +3 more.
list_user_collections_v1_users__user_id__collections_getA
GET /v1/users/{user_id}/collections (public) — List user's public collections — List public collections created by a user.
Returns a paginated list of the user's public collections, ordered by last update time (most recent first).
Returns empty list for users who haven't created any collections yet. Private collections are not included. This endpoint is public and does not require authentication.
Inputs: user_id (required), limit, offset.
list_user_datasets_v1_users__user_id__datasets_getA
GET /v1/users/{user_id}/datasets (public) — List user's datasets — List datasets owned by a user.
Returns a paginated list of datasets that the user has created, ordered by creation date (most recent first).
Returns empty list for users who haven't created any datasets yet. This endpoint is public and does not require authentication.
Inputs: user_id (required), limit, offset.
list_user_figures_v1_users__user_id__figures_getA
GET /v1/users/{user_id}/figures (public) — List user's public figures — List public figures created by a user.
Figures are views that have a viz_spec set (chart/visualization configuration). Results are ordered by like_count descending (most liked first).
Returns empty list for users who haven't created any figures yet. This endpoint is public and does not require authentication.
Inputs: user_id (required), limit, offset.
list_user_liked_figures_v1_users__user_id__likes_figures_getA
GET /v1/users/{user_id}/likes/figures (public) — List figures liked by a user — List figures liked by a user.
Returns public figures the user has liked, ordered by when they liked them (most recent first). liked_at is included in each item.
Returns empty list for users who haven't liked any figures yet. This endpoint is public and does not require authentication.
Inputs: user_id (required), limit, offset.
list_user_starred_datasets_v1_users__user_id__stars_datasets_getA
GET /v1/users/{user_id}/stars/datasets (public) — List user's starred datasets — List datasets starred by a user.
Returns a paginated list of datasets the user has starred, ordered by when they were starred (most recent first).
Returns empty list for users who haven't starred any datasets yet. This endpoint is public and does not require authentication.
Inputs: user_id (required), limit, offset.
list_user_starred_views_v1_users__user_id__stars_views_getA
GET /v1/users/{user_id}/stars/views (public) — List a user's starred views (figures they have liked) — Published views the user has liked, ordered by most-recent like first.
Used by the profile "Starred" tab in phase 4. Mirrors
GET /v1/users/{user_id}/stars/datasets.
Inputs: user_id (required), limit, offset.
list_user_views_v1_users__user_id__views_getA
GET /v1/users/{user_id}/views (public) — List user's public views — List public views created by a user.
Returns a paginated list of the user's public views, ordered by last update time (most recent first).
Returns empty list for users who haven't created any views yet. Private views are not included. This endpoint is public and does not require authentication.
Inputs: user_id (required), limit, offset.
list_versions_v1_views___username___slug__versions_getA
GET /v1/views/@{username}/{slug}/versions (public) — List a view's published versions — Return every published version for @user/slug.
Inputs: username (required), slug (required).
list_views_v1_views_getA
GET /v1/views (public) — List Views — List all available predefined views.
Returns a summary of each view including name, description, available aliases, and default sorting.
Inputs: no named parameters.
list_view_versions_v1_user_views__clerk_id___slug__versions_getA
GET /v1/user-views/{clerk_id}/{slug}/versions (public) — List a view's published versions (owner-aware) — List versions for a view addressed by (clerk_id, slug).
Mirrors the public /v1/views/@user/slug/versions endpoint but uses
the clerk_id-based URL so the sandbox can fetch its own drafts.
Inputs: clerk_id (required), slug (required).
mark_in_progress_v1_requests__request_id__in_progress_postC
POST /v1/requests/{request_id}/in-progress (auth: Bearer OPENDATA_API_KEY) — Mark In Progress — Mark a dataset request as in-progress. Admin-only.
Inputs: request_id (required), body.
publish_view_v1_user_views__clerk_id___slug__publish_postA
POST /v1/user-views/{clerk_id}/{slug}/publish (auth: Bearer OPENDATA_API_KEY) — Publish a new version — Publish the current draft (or working-copy edits) as a new version.
bump_type is ignored for the first publish of a draft (always 1.0.0).
Inputs: clerk_id (required), slug (required), body (required).
reject_request_v1_requests__request_id__reject_postB
POST /v1/requests/{request_id}/reject (auth: Bearer OPENDATA_API_KEY) — Reject Request — Reject a dataset request with a reason. Admin-only.
Inputs: request_id (required), body (required).
remove_upvote_v1_requests__request_id__upvote_deleteB
DELETE /v1/requests/{request_id}/upvote (auth: Bearer OPENDATA_API_KEY) — Remove Upvote — Remove an upvote from a dataset request.
Inputs: request_id (required).
request_enrichment_v1_enrichment_request__provider___dataset__poA
POST /v1/enrichment/request/{provider}/{dataset} (auth: Bearer OPENDATA_API_KEY) — Request Enrichment — Public endpoint: any authenticated user can request enrichment.
Rate-limited to one request per user per dataset per hour. Records the
request in enrichment_requests for audit, and (if not rate-limited)
queues the dataset by setting enrichment_status='pending' and waking
the worker -- same effect as the admin retry endpoint.
Inputs: provider (required), dataset (required).
search_datasets_v1_search_getA
GET /v1/search (public) — Search Datasets — Search across all datasets using full-text search.
Searches dataset names, descriptions, provider names, and column names. Results are ranked by relevance using PostgreSQL's FTS capabilities.
Search Modes:
keyword: Traditional FTS with tsvector matchingsemantic: Embedding-based similarity search (conceptual matching)hybrid: Combines both using Reciprocal Rank Fusion (RRF)
Query Syntax:
inflation- simple term search"consumer price index"- exact phrase searchcensus -historical- exclude terminflation OR unemployment- alternative terms
Sort Options:
relevance: FTS ranking (default when query provided)recency: Most recently updated firstname: Alphabetical by dataset name`populari…
Inputs: q, mode, provider, format, +6 more.
sql_query_v1_datasets__provider___dataset__query_postB
POST /v1/datasets/{provider}/{dataset}/query (auth: Bearer OPENDATA_API_KEY) — Execute SQL query against a dataset — Execute a SQL query against a dataset's parquet file.
The query runs in a sandboxed DuckDB environment. Only SELECT statements
are allowed. Table references like data or provider/dataset are
bound to the dataset's parquet file automatically.
Inputs: provider (required), dataset (required), body (required).
submit_request_v1_requests_postA
POST /v1/requests (auth: Bearer OPENDATA_API_KEY) — Submit Request — Submit a new dataset request to the review queue.
Description-first intake: user_description is required (>=20 chars,
enforced by the schema). URL fields are optional. When a landing_page_url
is provided, we run URL validation + a lightweight metadata scrape so the
admin queue can show a page title and scraped meta description. We do NOT
auto-discover or ingest — fulfillment is fully manual.
For description-only submissions, we run a quick search to surface a potential dataset match (hint only — the request is still created).
Inputs: body (required).
suggest_datasets_v1_search_suggest_getA
GET /v1/search/suggest (public) — Suggest Datasets — Get autocomplete suggestions for search typeahead.
Returns dataset names that start with the given prefix, for use in search input autocomplete. Only returns datasets with status='ready'.
Response:
suggestions: List of matching datasets with name, slug, provider, and pathquery: The prefix echoed back
Example:
GET /v1/search/suggest?q=con might return suggestions like
"Consumer Price Index", "Congressional Budget Data", etc.
Inputs: q (required), limit.
unfollow_user_v1_users__clerk_id__follow_deleteA
DELETE /v1/users/{clerk_id}/follow (auth: Bearer OPENDATA_API_KEY) — Unfollow a user — Unfollow clerk_id. Idempotent — DELETE on a missing edge returns OK.
Inputs: clerk_id (required).
update_operator_notes_v1_requests__request_id__notes_patchA
PATCH /v1/requests/{request_id}/notes (auth: Bearer OPENDATA_API_KEY) — Update Operator Notes — Update admin operator notes on a request. Admin-only.
Inputs: request_id (required), body (required).
update_view_v1_user_views__clerk_id___slug__patchA
PATCH /v1/user-views/{clerk_id}/{slug} (auth: Bearer OPENDATA_API_KEY) — Update a user view — Update a view.
For published views, config edits go to draft_config so the
published snapshot stays frozen. Slug changes are allowed only on drafts.
Inputs: clerk_id (required), slug (required), body (required).
upvote_request_v1_requests__request_id__upvote_putC
PUT /v1/requests/{request_id}/upvote (auth: Bearer OPENDATA_API_KEY) — Upvote Request — Upvote a dataset request to increase its priority.
Inputs: request_id (required).
view_diff_v1_user_views__clerk_id___slug__diff_getB
GET /v1/user-views/{clerk_id}/{slug}/diff (public) — Diff working copy vs the last published version
Inputs: clerk_id (required), slug (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 99 tools
Many tools have distinct purposes, but there are several overlapping pairs (e.g., multiple get_user_activity, get_feed, get_related, list_versions vs list_view_versions). Descriptions help differentiate, but the sheer number of tools increases ambiguity.
Tool names are highly inconsistent: some are long path-based (e.g., add_comment_v1_requests__request_id__comments_post), others are short (e.g., discover_datasets). Mix of full paths, HTTP verbs, and typical function names with no clear pattern.
99 tools is far too many for an MCP server. The server wraps a large API, but for agent use, this overwhelms selection. Typical servers have 5-20 tools; this is extreme.
The tool set covers many areas (datasets, views, figures, requests, graph, enrichment, providers, users), but there are notable gaps (e.g., no create/delete dataset) and redundancy. It's comprehensive but not well-curated.
Maintenance
Related MCP Connectors
Discover, plan and run tools across your connected business systems through one OAuth MCP endpoint
Host any HTTP API as MCP tools with a tamper-evident cross-agent settlement ledger.
Generate a typed SDK, CLI, and MCP server from any OpenAPI or GraphQL spec, and keep them current.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceExposes REST API endpoints defined in an OpenAPI Specification as MCP tools, allowing AI models to call them via the ModelContext Protocol.MIT- AlicenseNot gradedqualityDmaintenanceExposes OpenAPI endpoints as MCP tools, enabling LLMs to discover and interact with REST APIs through the MCP protocol.35 npmMIT
- AlicenseNot gradedqualityDmaintenanceDynamically exposes any REST API as MCP tools by parsing its OpenAPI specification.MIT
- AlicenseAqualityDmaintenanceExposes OpenAPI/Swagger API documentation as MCP tools, enabling AI agents to search, inspect, and call API endpoints through natural language.518 npmMIT