
Met Museum Mcp Server
io.github.cyanheadsv0.6.0更新于 Sep 29, 2026
MET Museum collection via MCP — 500K+ artworks, metadata, provenance, open-access images.
安装
在 SourceWeft 中
- 打开 控制台中的 Met Museum Mcp Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"met-museum-mcp-server": {
"type": "http",
"url": "https://met-museum.caseyjhand.com/mcp"
}
}
}README
@cyanheads/met-museum-mcp-server
Search the Metropolitan Museum of Art collection, fetch full artwork records and open-access images via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://met-museum.caseyjhand.com/mcp
Overview
The Metropolitan Museum of Art's public Collection API. Search the collection by keyword and filters, 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.
Tools
Capability reference
met_list_departments tool
- No input required — returns all 19 curatorial departments in one call
- Each entry pairs
departmentId(numeric) withdisplayName(e.g., "European Paintings", "Egyptian Art") departmentIdvalues are the valid inputs formet_search_collections'sdepartmentIdfilter
met_search_collections tool
- Keyword
q(required) matches title, artist name, culture, medium, tags, and other text fields; broad terms return large ID sets - Filters:
departmentId(validated againstmet_list_departments; an unrecognized ID is rejected),medium(a case-sensitive classification as the Met spells it —"Paintings","Sculpture"— not a material like"Oil on canvas"),dateBegin/dateEnd(integer years, negative = BCE, both required together),geoLocation(one country/region/city),hasImages,isOnView isHighlightacceptstrueonly — the search ignoresfalse, so omit the filter instead of passing it. Public-domain (CC0) status is read per object frommet_get_object, not filtered at search- Paginate with
limit(default 20, max 500) andoffset(default 0);nextOffsetcontinues where a page left off (nullonce no further page is reachable). Paging reaches only the first 10,000 matches of a search —totalstill reports the full count, and a response whosetotalexceeds 10,000 says so in anotice - Returns
total,returned,truncated,remaining,nextOffset, and the resolvedoffset; object IDs resolve to full records viamet_get_object(up to 20 per call) - Typed errors:
no_results(its recovery names the filters that removed every match, or points at the keyword when it matches nothing on its own),invalid_date_range,invalid_filter(blankq,medium, orgeoLocation),invalid_department— each carries a recovery hint
met_get_object tool
- Accepts 1–20 IDs per call; a repeated ID is fetched and returned once, at its first position
- Partial-success batching — a 404 or fetch failure doesn't fail the whole call;
failed[]reports per-ID error detail, and the call fails only when every ID fails (all_not_found/all_failed) - Full record: metadata, provenance, artist/constituent data (Getty ULAN + Wikidata URLs), controlled-vocabulary tags (Getty AAT + Wikidata), a nine-field
geographyfindspot block, and structuredmeasurements— sparse fields are empty string or null, never fabricated - Records are never truncated individually — a call whose combined records exceed a serialized-bytes budget returns fewer of them, listing the rest in
deferred[]with sizes to re-request;content[]re-renders the admitted records, so the delivered response runs roughly twice the budget isPublicDomain/hasCC0Imagegate image URLs — non-public-domain objects return emptyprimaryImage,primaryImageSmall, andadditionalImages- Canonical
objectURLand per-objectobjectWikidata_URLfor human follow-up and external enrichment
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.
Met Museum-specific:
- 500K+ artworks spanning 5,000 years from the Met's public collection API
- CC0 open-access data from The Metropolitan Museum of Art — free to use without permission or attribution
- Parallel batch fetching with configurable concurrency for
met_get_object - Linked data on every object — Getty ULAN and AAT URLs, Wikidata entity URLs for artists, tags, and works
Agent-friendly output:
- Provenance on every record —
isPublicDomainandhasCC0Imageflags distinguish CC0 objects from works with inaccessible images, so agents can reason about what they can actually display - Partial failure reporting —
met_get_objectreturnsobjectsandfailedarrays so callers receive successful records alongside structured per-ID error context - Truncation signaling —
met_search_collectionsreturnstotal,returned,truncated,remaining,nextOffset, and the resolvedoffsetfields so agents know when to refine filters, increaselimit, or page further withoffset; the text rendering marks each page(truncated),(complete),(window end)when paging stops at the 10,000-match window short oftotal, or(offset beyond result set)when the offset ran past what paging reaches - Byte-budget disclosure —
met_get_objectreportsdeferred[]records with their sizes when a batch exceeds its serialized-response budget, so callers can size a follow-up call precisely
Getting started
Public Hosted Instance
A public instance is available at https://met-museum.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
Self-Hosted / Local
Add the following to your MCP client configuration file.
Or with npx (no Bun required):
Or with Docker:
For Streamable HTTP, set the transport and start the server:
Prerequisites
- Bun v1.4.0 or higher (or Node.js v24+).
- No API key required — the Met Collection API is public and unauthenticated.
Installation
- Clone the repository:
- Navigate into the directory:
- Install dependencies:
- Configure environment:
Configuration
All configuration is validated at startup via Zod schemas in src/config/server-config.ts.
See .env.example for the full list of optional overrides.
Running the server
Local development
-
Build and run:
-
Run checks and tests:
Docker
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.
Project structure
Development guide
See CLAUDE.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 via the arrays in
createApp()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:
Data attribution
Data from The Metropolitan Museum of Art Collection API (CC0).
License
Apache-2.0 — see LICENSE for details.
来源:README.md,提交 9c8c00b
工具
0版本历史
3- v0.6.0最新Sep 25, 2026
- v0.5.3Sep 19, 2026
- v0.5.2Sep 16, 2026
