About smithsonian-mcp-server
An MCP service for researchers, educators, and creators exploring Smithsonian collections across more than 20 museums. It supports Open Access search, CC0 image retrieval, and cross-collection discovery based on shared metadata.
Key features
- 01Search objects and catalog metadata across collections
- 02Browse by museum, culture, or topic
- 03List valid filter terms
- 04Retrieve CC0 images at multiple resolutions
- 05Find related objects through shared metadata
Use cases
- 01Find objects on a topic or from a culture
- 02Filter for downloadable CC0 images
- 03Browse objects from a museum or period
- 04Discover cross-museum links from an object
MCP support
Exposes 6 tools to MCP clients for searching and browsing objects, retrieving catalog details and CC0 images, and finding related objects. Supports STDIO and Streamable HTTP.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://smithsonian.caseyjhand.com/mcpclaude mcp add --transport http cyanheads-smithsonian https://smithsonian.caseyjhand.com/mcp{"mcpServers":{"cyanheads-smithsonian":{"type":"http","url":"https://smithsonian.caseyjhand.com/mcp"}}}Open in Cursor{"servers":{"cyanheads-smithsonian":{"type":"http","url":"https://smithsonian.caseyjhand.com/mcp"}}}Open in VS Code{"mcpServers":{"cyanheads-smithsonian":{"type":"http","url":"https://smithsonian.caseyjhand.com/mcp"}}}{"mcpServers":{"cyanheads-smithsonian":{"serverUrl":"https://smithsonian.caseyjhand.com/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
6| Parameter | Type | Required | Description |
|---|---|---|---|
| rows | integer | No | Page size (default 20, max 100). |
| query | string | Yes | Free-text search. Use specific terms for precision ("Tlingit totem pole") or broad terms for browsing ("quilt"). |
| start | integer | No | Pagination offset — 0-indexed. Use with rows for paging through large result sets. |
| filters | object | No | Optional structured filters to narrow the search. |
| filters.date | string | No | Indexed date term. Decades ("1920s", "1960s") are the most common form, but the vocabulary also carries year ranges ("500-1500"), century terms ("21st century"), and BCE forms ("-2500", "BCE 1000s"). The value must be an exact term — the full set is enumerable via smithsonian_list_terms (field "date"). |
| filters.name | string | No | Indexed named party — maker, collector, donor, issuing authority, or any other role the catalog records. Written surname-first (e.g. "Warhol, Andy"). This field is not enumerable via smithsonian_list_terms. A smithsonian_find_related name signal carries the indexed form verbatim and is the reliable source; smithsonian_get_object's makers[] is the catalog's free-text form of the same parties and is often written differently ("Major J. A. L. Möller (Jacob A.L. Möller/Monty Möller), Non-Indian, 1883-1957" for the indexed "Möller, Major J. A. L."), so treat it as a starting guess. |
| filters.place | string | No | Geographic place (e.g. "United States of America"). The full set is enumerable via smithsonian_list_terms (field "place"). |
| filters.topic | string | No | Subject term from the controlled vocabulary (e.g. "Quilts", "Aviation"). Matches the topics[] values smithsonian_get_object returns, and is a hard constraint — topic "Quilts" matches 1,134 objects where the same word as free text matches 2,677. The full set is enumerable via smithsonian_list_terms (field "topic"). |
| filters.culture | string | No | Culture term from the controlled vocabulary — often plural or qualified (e.g. "Aztecs", "Plains Indian"). The vocabulary is enumerable via smithsonian_list_terms (field "culture"). |
| filters.cc0_only | boolean | No | When true, restrict to records that have CC0-licensed media attached (the Lucene term media_usage:CC0). This selects on media presence, not license status — the roughly 9.2M records it excludes are CC0 too, they simply have nothing digitized. Read has_media on each result to decide whether smithsonian_get_media will return anything. |
| filters.unit_code | string | No | Museum unit code (e.g. "NASM", "SAAM", "NMAH", "NMAAHC", "NMAI", "NPG", "CHNDM", "SIL"); the National Museum of Natural History is indexed under discipline sub-units like "NMNHBIRDS" and "NMNHPALEO", not a bare "NMNH". The full set is enumerable via smithsonian_list_terms (field "unit_code"). |
| filters.object_type | string | No | Object type term from Smithsonian's controlled vocabulary — commonly plural (e.g. "Paintings", "Photographs", "Aircraft"). Singular everyday forms like "Painting" usually return nothing. This field is not enumerable via smithsonian_list_terms; harvest valid values from the object_type field in smithsonian_search_objects results. Matched exactly and case-sensitively, and casing variants are indexed as SEPARATE categories — "button" and "Button" each hold their own records, and neither casing is reliably the larger — so probe a harvested value's other casings rather than assuming one covers the concept. |
| filters.online_only | boolean | No | When true, restrict to records carrying an indexed online_media_type value. That vocabulary covers digitized surrogates — finding aids, catalog cards, scanned books, full text, electronic resources — alongside images, 3D models, and video, and the surrogate types often have no deliverable media attached, so a match can still report has_media: false. Read has_media on each result to decide whether smithsonian_get_media will return anything. |
Details
From the project README@cyanheads/smithsonian-mcp-server
Search 14.5M Smithsonian Open Access objects across 20+ museums via MCP, and retrieve CC0 images for the 5.2M that carry openly-licensed media. STDIO or Streamable HTTP.
Public Hosted Server: https://smithsonian.caseyjhand.com/mcp
Overview
The Smithsonian's Open Access catalog: 14.5 million objects across 20+ museums, 5.2 million with CC0 images. Search by free text or category, browse by museum, culture, date, or topic, and discover connections across collections.
Tools
| Tool | Description |
|---|---|
smithsonian_search_objects | Search across 14.5M objects by text query with optional filters (museum, type, date term, culture, place, topic, name, scientific name, media type, online-only, CC0). Returns curated summaries with total count. |
smithsonian_list_terms | Enumerate the valid term vocabulary for an indexed filter field (unit_code, culture, place, date, online_media_type, topic). Call before filtering to avoid empty results from invalid values; pass contains to resolve a guessed value to its exact term(s). unit_code terms come back with their museum names. |
smithsonian_get_object | Fetch a normalized catalog metadata projection for an object by ID: title, dates, materials, dimensions, exhibition history, credit line, and identifiers. |
smithsonian_get_media | Return all CC0-licensed images for an object at multiple resolutions (thumbnail, screen, high-res JPEG/TIFF). Only CC0 images returned, never an empty list — a distinct error reason names why, whether the object has nothing digitized, only non-image media, or only restricted images. |
smithsonian_browse_category | Browse objects within one exact category (museum, culture, period, medium, topic) with total count, a page of objects, and museum breakdown. Requires an exact indexed category term. |
smithsonian_find_related | Discover cross-collection objects related to an anchor, matched on shared culture, named-party, topic, and period signals. |
Capability reference
smithsonian_search_objects tool
- Free-text search over 14.5M objects from 20+ museums
- Filters append hard
ANDconstraints. Plain words and quoted phrases keep their matching semantics; active Lucene expressions are grouped to preserve Boolean precedence. filters.online_media_typeaccepts exactsmithsonian_list_termsmedia categories such asImages,3D Models, andSound recordings. These describe the index; evenImagesdoes not guarantee attached or CC0 images. Checksmithsonian_get_object.media_summaryfor deliverability. Media categories feed search, with no media-type browse mode.- Filters: museum unit code, object type, indexed date term (
1920s,500-1500,21st century,-2500), culture, geographic place, subject topic, named party (name), scientific name (scientific_name), indexed media category (online_media_type), online-only, CC0-only topicandnameare hard indexed constraints, not free text —topic: "Quilts"matches 1,134 objects where the bare word matches 2,677, andname: "Warhol, Andy"matches 421 against 715- Returns curated summaries: title, date, museum, object type, thumbnail URL, CC0 flag,
record_id - Use
start+rowsfor standard pagination (offset-based, max 100 per page)
smithsonian_list_terms tool
- Fields:
unit_code,culture,place,date,online_media_type,topic— a controlled vocabulary, often plural (e.g.Paintings, notPainting); ground filter values here before searching or browsing containsfilters the vocabulary by a case-insensitive substring — resolves a guessed value (e.g.greek→Greek, Attic) in one call; forunit_codeit also matches museum names (National Air and Space→NASM), and eachunit_codeterm comes back with alabelsmap of its museum name- Paginate with
start+rows(default 50, max 100 per page);topic(133k terms) andplace(114k) are large enough to pair withcontains - No per-term object counts are available upstream — only the term values themselves
- Each field's vocabulary is cached for
SMITHSONIAN_TERMS_CACHE_TTL_SECONDS(default 3600 seconds,0disables) — upstream ignores paging and returns the whole set on every call, so paging a large vocabulary uncached re-downloads it each time object_typeis not enumerable here — harvest its values from theobject_typefield insmithsonian_search_objectsresults
smithsonian_get_object tool
- Input:
record_idfromsmithsonian_search_objects— do not construct IDs manually - Returns the exposed catalog fields: title, dates (all labeled), makers (with roles), materials, dimensions, place associations, culture terms, topic/subject terms, exhibition history, accession identifiers, credit line, rights statement
- Media summary included — call
smithsonian_get_mediafor full image URLs - All nonempty notes retain their catalog labels and source order.
descriptionselects recognized prose labels; administrative notes stay labeled. - Natural-history metadata includes all
scientific_names, reportedtaxonomyranks, and valid decimal collectioncoordinateswith their own locality when present. The arrays are empty when no names or valid points are available; absent ranks are omitted. No accepted name, geocoding, or accuracy is inferred. Usescientific_namesas exactfilters.scientific_namevalues in search; this field is not enumerable viasmithsonian_list_terms.
smithsonian_get_media tool
- Only CC0-licensed images are returned, never restricted content
- Three distinct failure reasons when nothing is returnable:
no_media(nothing digitized),no_images(media exists but is entirely non-image — scanned books, 3D models, sound recordings; the recovery hint names the types present),not_cc0(images exist but none are CC0, thrown asForbidden) - Each image entry includes thumbnail (~120px), screen-size (~800px), and high-resolution JPEG/TIFF URLs with pixel dimensions
- Use
smithsonian_search_objectswithfilters.cc0_only: trueto find objects with downloadable CC0 images before calling this tool
smithsonian_browse_category tool
- Five modes:
museum(by unit code, e.g."NASM"— matched exactly, not by museum name),culture(e.g."Aztecs"),period(indexed date term, e.g."1940s"or"500-1500"),medium(object type, e.g."Paintings"),topic(subject term, e.g."Quilts") valuemust be an exact indexed category term — resolvemuseum,culture,period, andtopicvocabulary withsmithsonian_list_termsfirst;object_typeis not enumerable there, so harvest it fromsmithsonian_search_objectsresults- Returns total count, a page of sample objects, and a museum breakdown showing which institutions hold matching items (computed from the current page)
- Use
start+rowsfor standard pagination (offset-based,start = page × rows, max 50 per page) — adjacent pages retrieve the objects a capped sample omits - A category value that matches nothing throws
invalid_categorywith a mode-specific recovery hint: a value outside the vocabulary gets the exactsmithsonian_list_termscall that resolves it, and a value the index enumerates but that matches no objects is named as such and routed elsewhere - For open-ended or topic discovery, use
smithsonian_search_objectsinstead — this tool requires an exact category value
smithsonian_find_related tool
- Matches shared culture, named-party, topic, and period+type metadata signals against the wider catalog; cross-museum discovery is the differentiator — an NASM aerospace anchor may surface related objects from NMNH, SAAM, and NMAH
- The named-party signal carries the catalog's own role for the party (
maker,collector,donor,issuing authority, …) rather than a fixedmakerlabel, prefers the indexednamefacet as a hard filter when the record has one, and is dropped when its value only repeats the culture signal - The topic signal is a hard
topic:filter, so every object it tags carries that subject term rather than merely mentioning the word similarity_signalson each result names every metadata term that connected it to the anchor — an object surfaced by more than one signal carries all of them- Page with
start— a 0-indexed offset into the interleaved related set,start = page × limit; each signal is reachable to a depth of 5,000 (fetched in ≤1,000-row chunks — a deeper page can shift an object by a bounded amount near a seam), and a truncated response reportstruncationCeilingas an upper bound on the reachable related pool signals[]breaks the fan-out down per signal:row_countis that signal's true upstream size (uncapped, so it can exceed the 5,000 reach) andsearch_continuationis the exactsmithsonian_search_objectsinput that retrieves the signal's full match set at any depth — the retrieval path past this tool's per-signal reach- Partial failures name the failed signals with safe categories in the same notice as paging guidance. Empty successes distinguish missing anchor signals, no non-anchor matches, and exhausted pages. All-failed searches reject with the first signal failure; caller cancellation always rejects.
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
Smithsonian-specific:
- Wraps the Smithsonian Open Access API (14.5M objects across 20+ museums, 5.2M carrying CC0 media) with a free
api.data.govkey - CC0 gating on
smithsonian_get_media— only open-access images returned, never restricted content - Graceful degradation in
smithsonian_find_related— a failure in one metadata signal doesn't abort the rest - Response normalization across heterogeneous museum metadata schemas
Agent-friendly output:
has_mediaon every object summary — agents can gate image download calls without an extra lookup (theis_cc0flag is the metadata license, which the Open Access corpus carries almost everywhere)- Typed error reasons (
no_results,invalid_filter,not_found,no_media,no_images,not_cc0,invalid_id) with recovery hints for each case similarity_signalson related-object results let agents explain why objects were surfacedtotal_counton all search responses enables agents to communicate result scope before paginating
Getting started
Public Hosted Instance
A public instance is available at https://smithsonian.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"smithsonian-mcp-server": {
"type": "streamable-http",
"url": "https://smithsonian.caseyjhand.com/mcp"
}
}
}
Self-Hosted / Local
Requires a free
api.data.govAPI key — register at https://api.data.gov/signup and setSMITHSONIAN_API_KEYin your config.
Add the following to your MCP client configuration file:
{
"mcpServers": {
"smithsonian-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/smithsonian-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"SMITHSONIAN_API_KEY": "your-api-key"
}
}
}
}
Or with npx (no Bun required):
{
"mcpServers": {
"smithsonian-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/smithsonian-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"SMITHSONIAN_API_KEY": "your-api-key"
}
}
}
}
Or with Docker:
{
"mcpServers": {
"smithsonian-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"-e", "SMITHSONIAN_API_KEY=your-api-key",
"ghcr.io/cyanheads/smithsonian-mcp-server:latest"
]
}
}
}
For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 SMITHSONIAN_API_KEY=your-api-key bun run start:http
# Server listens at http://localhost:3010/mcp
Prerequisites
- Bun v1.4.0 or higher (or Node.js v24+).
- A free
api.data.govAPI key — register at https://api.data.gov/signup. Approval is instant.
Installation
- Clone the repository:
git clone https://github.com/cyanheads/smithsonian-mcp-server.git
- Navigate into the directory:
cd smithsonian-mcp-server
- Install dependencies:
bun install
- Configure environment:
cp .env.example .env
# Edit .env and set SMITHSONIAN_API_KEY
Configuration
| Variable | Description | Default |
|---|---|---|
SMITHSONIAN_API_KEY | Required. Free API key from api.data.gov/signup. | — |
SMITHSONIAN_BASE_URL | Smithsonian Open Access API base URL. | https://api.si.edu/openaccess/api/v1.0 |
SMITHSONIAN_TERMS_CACHE_TTL_SECONDS | Seconds to cache each indexed field's term vocabulary. 0 disables caching. | 3600 |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | Port for HTTP server. | 3010 |
MCP_SESSION_MODE | Session mode: auto, stateful, or stateless. The server declares stateless in code; set this only to override it. | stateless |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424). | info |
LOGS_DIR | Directory for log files (Node.js only). | <project-root>/logs |
STORAGE_PROVIDER_TYPE | Storage backend. | in-memory |
OTEL_ENABLED | Enable OpenTelemetry instrumentation. | false |
See .env.example for the full list of optional overrides.
Running the server
Local development
-
Build and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:http -
Run checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker build -t smithsonian-mcp-server .
docker run --rm -e SMITHSONIAN_API_KEY=your-api-key -p 3010:3010 smithsonian-mcp-server
The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/smithsonian-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point — registers tools and initializes the Smithsonian service. |
src/config | Server-specific environment variable parsing (SMITHSONIAN_API_KEY, SMITHSONIAN_BASE_URL, SMITHSONIAN_TERMS_CACHE_TTL_SECONDS). |
src/mcp-server/tools | Tool definitions (*.tool.ts). |
src/services/smithsonian | Smithsonian Open Access API client, normalization, and type definitions. |
tests/ | Unit and integration tests. |
docs/ | Design document and directory tree. |
Development guide
See CLAUDE.md / AGENTS.md for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — no
try/catchin tool logic - Use
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storage - Register new tools in the
toolsarray insrc/index.ts - Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
License
Apache-2.0 — see LICENSE for details.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.