
Connects Claude to the Metropolitan Museum of Art's public collection API with three focused tools: list all 19 curatorial departments, search 500K+ artworks by keyword with filters for date range, medium, geography, and public domain status, and fetch full object records including provenance, artist bios, Getty and Wikidata links, and CC0 image URLs. Built on the Met's open API, so no authentication required. Handles batch fetching for up to 20 objects at once with partial failure reporting, and surfaces CC0 flags so you know which images are actually usable. Reach for this when you need structured art historical data, open access images for display, or want to let Claude search museum collections with precise filtering rather than keyword scraping.
claude mcp add --transport http met-museum https://met-museum.caseyjhand.com/mcpRun in your terminal. Add --scope user to make it available in every project.
Review the command, arguments, and environment values before installing — MCP servers run with your local permissions.
Verified live against the running server on Jun 10, 2026.
met_list_departmentsReturn the 19 curatorial departments at The Metropolitan Museum of Art with their numeric IDs and display names. Use before calling met_search_collections to discover valid departmentId values. The department list is fetched live on each call to remain accurate if the Met reor...Return the 19 curatorial departments at The Metropolitan Museum of Art with their numeric IDs and display names. Use before calling met_search_collections to discover valid departmentId values. The department list is fetched live on each call to remain accurate if the Met reor...
No parameters — call it with no arguments.
met_search_collectionsSearch the Metropolitan Museum of Art collection by keyword and optional filters; returns total match count and a page of object IDs. Always chain the returned IDs to met_get_object (up to 20 at a time) to retrieve full records. Search relevance is keyword-based, not semantic...11 paramsSearch the Metropolitan Museum of Art collection by keyword and optional filters; returns total match count and a page of object IDs. Always chain the returned IDs to met_get_object (up to 20 at a time) to retrieve full records. Search relevance is keyword-based, not semantic...
dateBeginintegerdateEndintegerdepartmentIdintegergeoLocationarrayhasImagesbooleanisHighlightbooleanisOnViewbooleanisPublicDomainbooleanlimitintegermediumstringq*stringmet_get_objectFetch full records for one or more Met Museum object IDs. Accepts up to 20 IDs per call, fetches in parallel (concurrency-limited), and returns partial-success — a single 404 does not fail the whole batch. Object IDs come from met_search_collections. Non-public-domain objects...1 paramsFetch full records for one or more Met Museum object IDs. Accepts up to 20 IDs per call, fetches in parallel (concurrency-limited), and returns partial-success — a single 404 does not fail the whole batch. Object IDs come from met_search_collections. Non-public-domain objects...
objectIDs*arraySearch the Metropolitan Museum of Art collection, browse it by department or update date, fetch full artwork records and open-access images via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://met-museum.caseyjhand.com/mcp
The Metropolitan Museum of Art's public Collection API. Search the collection by keyword and filters, or browse it by department and update date, then fetch full object records — metadata, provenance, and CC0 open-access images — from any MCP client. Runs as a stdio process, a local Streamable HTTP server, or the public hosted endpoint above.
| Tool | Description |
|---|---|
met_list_departments | Return all 19 curatorial departments with their numeric IDs and display names |
met_search_collections | Search the collection by keyword, optionally matched in titles or tags only, with filters for department, date range, medium, geography, image availability, on-view status, and highlight designation |
met_list_objects | List every object ID in a department, every object created or revised since a date, or both, without a keyword |
met_get_object | Fetch full records for one or more object IDs — metadata, provenance, artist info, CC0 image URLs, tags, and Wikidata links — optionally with up to 3 CC0 images as image content |
met_list_departments tooldepartmentId with its displayName (e.g., "Egyptian Art")departmentId values are the valid input for the departmentId filter on met_search_collections and met_list_objectsupstream_blocked, upstream_unavailable (the Met answered 500/502/503/504 through every retry), upstream_rate_limited (the Met answered 429), and retry_deadline_exceeded (the call's time budget ran out)met_search_collections toolq (required), matched across all text fields unless matchField narrows it to "title" or "tags". "*" matches every object, for a search by filters alone; an accession number from a label ranks its object first. Plus filters: departmentId, medium (a case-sensitive classification as the Met spells it — "Paintings", not "Oil on canvas"), dateBegin/dateEnd (integer years, negative = BCE, set together), one geoLocation, hasImages, isOnView, and isHighlight (true only)departmentId 7 (The Cloisters) and 17 (Medieval Art) share one search result set at the Met: each page keeps only the requested department's IDs, while total and paging count both, so a page can hold fewer than limit IDs; a notice says so, and met_list_objects gives exact department membershiplimit up to 10,000 reads a 500-ID page, with a notice), paged by offset / nextOffset through the first 10,000 matches only; total still reports the full count, with a notice when it exceeds 10,000total: 0 with a notice saying whether the keyword matches nothing or the filters removed every match, and which filters to correct or drop. Every result echoes the applied query as effectiveQueryinvalid_date_range, invalid_filter (a blank q, medium, or geoLocation), invalid_department, upstream_blocked, upstream_unavailable, upstream_rate_limited, retry_deadline_exceededmet_list_objects tooldepartmentId (from met_list_departments) and updatedSince (YYYY-MM-DD — records created or revised on or after that day), alone or together; with neither, the whole collection (over 500,000 IDs). Up to 500 IDs per page (default 20; a limit up to 10,000 reads a 500-ID page, with a notice), in ascending order, paged by offset / nextOffset with no depth limitinvalid_department, invalid_date (an impossible date such as 2026-02-30), upstream_blocked, upstream_unavailable, upstream_rate_limited, retry_deadline_exceeded; an empty list is a result, not an error, with a notice naming the filters, and every result echoes the applied filters as effectiveQuerymet_get_object toolmet_search_collections or met_list_objects; a repeated ID is fetched and returned once. A list of up to 500 (a full page) is accepted, and the distinct IDs past the first 20 come back unrequested in remainingIDs, with a noticefailed[], and the call fails only when every ID does — all_not_found when every ID was a 404, upstream_blocked when the Met's firewall refused a request, upstream_rate_limited when the Met answered 429, retry_deadline_exceeded when every fetch ran out of the call's time budget, upstream_unavailable when a fetch met a Met API outage, and all_failed otherwise; records past a 60,000-byte structuredContent budget are listed in deferred[] with their sizes, to re-requestisPublicDomain / hasCC0Image gate image URLs — non-public-domain objects return empty primaryImage, primaryImageSmall, and additionalImages; sparse fields are empty or null, never fabricatedincludeImages: true attaches the CC0 web-display image (about 600 px on the long edge) of the first 3 returned records that have one, as image content after a caption naming the object, and images[] gives each returned record's outcome (attached, no_cc0_image, over_cap, unavailable). The bytes ride content[] only, so a client that passes the model only structuredContent won't show themartistPrefix ("Style of"), the name, artistSuffix, and artistRole ("Patron") — so a follower's work or a patron never reads as the named artist's own; rightsAndReproduction names the rights holder on the copyrighted works that carry one, beside accessionYearreign ("Joint reign of Hatshepsut and Thutmose III") sits beside period and dynasty, and portfolio ("Birds of America, plate LXXI") names a print's series and plate; both are empty on most recordsmetadataDate is the record's last revision, the timestamp met_list_objects updatedSince compares; departmentId resolves the record's department name (five differ from met_list_departments) to the ID met_list_objects and met_search_collections take, or null when the name is not recognizedBuilt 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.
Met Museum-specific:
met_get_objectupstream_blocked, non-retryable: the block covers the server's address for minutes, so the recovery is to wait and send fewer requestsupstream_unavailable; once every fetch in flight has failed without the Met answering any ID, met_get_object stops requesting the rest of the batch, so a 5xx outage costs at most MET_BATCH_CONCURRENCY × 4 requests (20 at the default) however many IDs were asked forupstream_rate_limited, its message naming the wait the Met asked for; met_get_object then stops requesting the rest of the batch, so a throttled batch costs at most MET_BATCH_CONCURRENCY requests (5 at the default) with a long Retry-After and MET_BATCH_CONCURRENCY × 4 (20) without onemet_get_object batch, as that ID's failed[] messageAgent-friendly output:
isPublicDomain and hasCC0Image flags distinguish CC0 objects from works with inaccessible images, so agents can reason about what they can actually displaymet_get_object returns objects and failed arrays so callers receive successful records alongside structured per-ID error contextmet_search_collections and met_list_objects return total, returned, truncated, remaining, nextOffset, and the resolved offset; the text marks each page (truncated), (complete), or (offset beyond result set), and search adds (window end) for a page that stops at its 10,000-match window short of totalmet_get_object reports deferred[] records with their sizes when a batch exceeds its serialized-response budget, so callers can size a follow-up call preciselyA public instance is available at https://met-museum.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"met-museum-mcp-server": {
"type": "streamable-http",
"url": "https://met-museum.caseyjhand.com/mcp"
}
}
}
Add the following to your MCP client configuration file.
{
"mcpServers": {
"met-museum-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/met-museum-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}
Or with npx (no Bun required):
{
"mcpServers": {
"met-museum-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/met-museum-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}
Or with Docker:
{
"mcpServers": {
"met-museum-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"ghcr.io/cyanheads/met-museum-mcp-server:latest"
]
}
}
}
For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp
git clone https://github.com/cyanheads/met-museum-mcp-server.git
cd met-museum-mcp-server
bun install
cp .env.example .env
# edit .env as needed (all vars are optional)
All configuration is validated at startup via Zod schemas in src/config/server-config.ts.
| Variable | Description | Default |
|---|---|---|
MCP_TRANSPORT_TYPE | Transport: stdio or http | stdio |
MCP_HTTP_PORT | HTTP server port | 3010 |
MCP_SESSION_MODE | HTTP session mode: auto, stateful, or stateless. This server declares stateless in createApp(), so it applies whenever the variable is unset; an explicit value overrides it. (auto, the framework schema default, resolves to stateful.) | stateless |
MCP_AUTH_MODE | Authentication: none, jwt, or oauth | none |
MCP_LOG_LEVEL | Log level (debug, info, warning, error) | info |
LOGS_DIR | Directory for log files (Node.js only) | <project-root>/logs |
LOG_TOOL_FAILURE_PAYLOADS | Log each failed tool call's arguments and result, redacted by key name and capped at LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES (default 16384). A secret inside a free-form value is not redacted. | false |
OTEL_ENABLED | Enable OpenTelemetry instrumentation | false |
MET_BASE_URL | Met Collection API root; each endpoint appends its own version (/v1.1/search, /v1/objects, /v1/objects/{id}, /v1/departments). A value ending in /v1 or /v1.1 is read as its root. Override for local stubs. | https://collectionapi.metmuseum.org/public/collection |
MET_REQUEST_TIMEOUT_MS | Per-request HTTP timeout in milliseconds | 10000 |
MET_CALL_DEADLINE_MS | Wall-clock budget in milliseconds for one tool call, shared by every Met API request it makes, retries and backoff included. A call that runs out fails with Timeout (-32004), data.reason: 'retry_deadline_exceeded'; in met_get_object the affected IDs land in failed[], and a batch that fetched nothing because every ID ran out fails with that reason. | 30000 |
MET_BATCH_CONCURRENCY | Max parallel fetches in met_get_object | 5 |
See .env.example for the full list of optional overrides.
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 build -t met-museum-mcp-server .
docker run --rm -p 3010:3010 met-museum-mcp-server
The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/met-museum-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point — registers tools and inits the Met service. |
src/config | Server-specific environment variable parsing and validation with Zod. |
src/mcp-server/tools | Tool definitions (*.tool.ts) — met_list_departments, met_search_collections, met_list_objects, met_get_object. |
src/services/met | Met Collection API client — HTTP, call deadline, response normalization, cached object-ID lists. |
tests/ | Unit and integration tests mirroring src/. |
See CLAUDE.md for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for request-scoped logging, ctx.state for tenant-scoped storagecreateApp() in src/index.tsIssues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
Data from The Metropolitan Museum of Art Collection API (CC0).
Apache-2.0 — see LICENSE for details.
MCP_LOG_LEVELdefault: infoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_HTTP_HOSTdefault: 127.0.0.1The hostname for the HTTP server.
MCP_HTTP_PORTdefault: 3010The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHdefault: /mcpThe endpoint path for the MCP server.
MCP_AUTH_MODEdefault: noneAuthentication mode to use: 'none', 'jwt', or 'oauth'.