Smithsonian Open Access MCP Server
Provides access to the Smithsonian Institution's Open Access collections with over 3 million digitized objects, allowing AI assistants to search collections, retrieve detailed object metadata, check exhibition status, and access high-resolution images and 3D models from 19 Smithsonian museums.
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., "@Smithsonian Open Access MCP Server find objects currently on exhibit at the National Air and Space Museum"
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.
Smithsonian Open Access MCP Server
A Model Context Protocol (MCP) server for the Smithsonian Institution's Open Access collections. It lets AI assistants such as Claude Desktop search more than 14 million object records and 2.8 million archive records from Smithsonian museums, libraries, archives and research centers, find out what is on display now, and fetch full object records with images and links to the museum websites.
Ask, for example:
Which Muppets are on display right now at the National Museum of American History?
The assistant calls search_objects(query="muppet", museum="American History", on_view=true) and finds the objects currently on view, such as:
Objects | Exhibition |
Elmo, Fozzie Bear, Oscar the Grouch and Rosita puppets | Entertainment Nation |
Oscar the Grouch's trash can and Mr. Hooper's costume from Sesame Street | Entertainment Nation |
The Muppets lunch box (1979) | Taking America To Lunch |
Version 2.0 replaces the 28 tools of version 1.x with 5. See Migrating from 1.x and the changelog.
Contents
Related MCP server: Smithsonian MCP Server
Quick Start
You need:
A free API key from api.data.gov/signup
uv. uv downloads a compatible Python (3.10 or newer) if one is not already installed.
The server speaks MCP over stdio by default. MCP clients such as Claude Desktop start it on demand; you do not run it in the background yourself. For clients that connect over HTTP, it can also run as a long-lived server; see HTTP transport.
Claude Desktop with uvx (recommended)
Add this to claude_desktop_config.json. It installs and runs the server straight from the GitHub repository, with no clone or virtual environment to manage:
{
"mcpServers": {
"smithsonian_open_access": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/molanojustin/smithsonian-mcp",
"smithsonian-mcp"
],
"env": {
"SMITHSONIAN_API_KEY": "your_key_here"
}
}
}
}Restart Claude Desktop, then ask "What Smithsonian museums are available?"
Notes:
The package is not published on PyPI, so
--frompoints uvx at the GitHub repository. Append@<tag or commit>to the URL to pin a version.uvx caches the build. To pick up newer commits, run
uvx --refresh --from git+https://github.com/molanojustin/smithsonian-mcp smithsonian-mcponce in a terminal.If Claude Desktop reports that
uvxcannot be found, use its absolute path as thecommand(which uvxon macOS/Linux,where uvxon Windows).
Other ways to run the server
All of these start the same smithsonian-mcp command and take the API key from the same env block.
npm/npx
The npm package is a small Node.js wrapper that uses uv to install the Python dependencies on first start. It requires Node.js 16 or newer and uv:
{
"mcpServers": {
"smithsonian_open_access": {
"command": "npx",
"args": ["-y", "@molanojustin/smithsonian-mcp"],
"env": {
"SMITHSONIAN_API_KEY": "your_key_here"
}
}
}
}You can also install it globally with npm install -g @molanojustin/smithsonian-mcp and run smithsonian-mcp. Run smithsonian-mcp --test to check your API key and connection.
The wrapper keeps the Python environment in a per-user cache directory, one per package version: ~/Library/Caches/smithsonian-mcp on macOS, ~/.cache/smithsonian-mcp (or $XDG_CACHE_HOME) on Linux, and %LOCALAPPDATA%\smithsonian-mcp on Windows. Set UV_PROJECT_ENVIRONMENT to use a different location. Older versions' environments there can be deleted safely.
From a local clone
git clone https://github.com/molanojustin/smithsonian-mcp.git
cd smithsonian-mcp
uv syncuv sync creates .venv from uv.lock and installs the smithsonian-mcp command into it. Point Claude Desktop at the clone:
{
"mcpServers": {
"smithsonian_open_access": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/smithsonian-mcp", "run", "smithsonian-mcp", "--transport", "stdio"],
"env": {
"SMITHSONIAN_API_KEY": "your_key_here"
}
}
}
}Alternatively, use the installed command directly as "command": "/absolute/path/to/smithsonian-mcp/.venv/bin/smithsonian-mcp" (on Windows, .venv\Scripts\smithsonian-mcp.exe) with "args": ["--transport", "stdio"].
A server run from the clone also reads the clone's .env. --transport stdio keeps it in stdio mode even if that file sets MCP_TRANSPORT=http for HTTP mode.
Python virtual environment without uv
Requires Python 3.10 or newer:
git clone https://github.com/molanojustin/smithsonian-mcp.git
cd smithsonian-mcp
python3 -m venv .venv
.venv/bin/pip install -e .Then use /absolute/path/to/smithsonian-mcp/.venv/bin/smithsonian-mcp as the command, with "args": ["--transport", "stdio"] as above. This installs the newest compatible dependencies rather than the versions pinned in uv.lock.
Docker
Build the image from a clone. The -i flag keeps stdin open for the stdio transport, and -e SMITHSONIAN_API_KEY passes the key from the env block into the container:
docker build -t smithsonian-mcp .{
"mcpServers": {
"smithsonian_open_access": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "SMITHSONIAN_API_KEY", "smithsonian-mcp"],
"env": {
"SMITHSONIAN_API_KEY": "your_key_here"
}
}
}
}To run the container as an HTTP server instead, set MCP_TRANSPORT=http and publish port 8000 on this machine only:
docker run --rm -e SMITHSONIAN_API_KEY -e MCP_TRANSPORT=http -p 127.0.0.1:8000:8000 smithsonian-mcpThe HTTP endpoint has no authentication: anyone who can reach the port can call the tools and spends your API key's quota. -p 127.0.0.1:8000:8000 keeps the port on this machine; -p 8000:8000 would publish it on every interface of the host, and on Linux Docker's published ports bypass firewalls such as ufw. The image sets MCP_HOST=0.0.0.0 so that the published port reaches the server, and MCP_ALLOWED_HOSTS=localhost,127.0.0.1,::1, so requests naming any other host are refused. To reach the container by another name, add it with -e MCP_ALLOWED_HOSTS=localhost,127.0.0.1,::1,mcp.example.org and control access in front of it. See HTTP transport.
Automated Setup Scripts
For a local clone, the setup scripts install dependencies (with uv sync when uv is available, otherwise a Python 3.10+ virtual environment and pip), validate your API key and save it to .env, and can optionally add the server to your Claude Desktop config, generate an mcpo config, install a background service that serves HTTP (see Service Management) and run a health check.
On macOS or Linux:
chmod +x config/setup.sh
config/setup.shOn Windows:
config\setup.ps1API Key in .env
When you run the server from a clone, it also reads SMITHSONIAN_API_KEY from a .env file in the project root. Copy .env.example to .env and set your key. A key set in the MCP client's env block takes precedence.
Verify Setup
Check an installation from a clone:
uv run python examples/test-api-connection.py
uv run python scripts/verify-setup.pyHTTP transport
stdio is the default and the right choice when an MCP client starts the server itself. For clients that connect to a running server over HTTP, start it with the streamable HTTP transport:
smithsonian-mcp --transport httpIt serves MCP at http://127.0.0.1:8000/mcp until you stop it with Ctrl+C (or SIGTERM). The same flags work with uvx --from git+https://github.com/molanojustin/smithsonian-mcp smithsonian-mcp, uv run smithsonian-mcp and npx -y @molanojustin/smithsonian-mcp.
Option | Environment variable | Default | Purpose |
|
|
|
|
|
|
| Address to listen on in HTTP mode. |
|
|
| Port to listen on in HTTP mode. |
|
|
| Comma-separated |
Options on the command line take precedence over the environment variables, which can also be set in .env. A blank environment variable counts as unset; a blank --host is an error. Configurations in which an MCP client starts the server from a clone pass --transport stdio, so MCP_TRANSPORT=http in the clone's .env does not affect them. mcpo also defaults to port 8000, so pick another port with --port if you run both.
Notes:
The HTTP endpoint has no authentication: anyone who can reach the port can call the tools and spends your API key's quota. Keep the default
127.0.0.1unless you put the server behind something that controls access.Requests whose
Hostheader is not an allowed name (or the address the connection arrived on) get HTTP 421, and requests whoseOriginheader names another site get 403. This blocks DNS rebinding from web pages, whatever address the server listens on. With--host 0.0.0.0, the allowed names are onlylocalhost,127.0.0.1and::1; add the names that clients use, such as--allowed-hosts localhost,127.0.0.1,mcp.example.org. Clients that connect by IP address need nothing extra.The server is stateless: each request is handled on its own, so it keeps no MCP sessions and its memory does not grow with the number of clients. The tools only answer requests, so nothing needs a session.
Logs go to stderr in both modes, including the access log of each HTTP request, and the API key is still sent only in the
X-Api-Keyheader to the Smithsonian API.In Docker, set
-e MCP_TRANSPORT=httpand publish the port, as shown under Docker.
Tools
All five tools are read-only.
Tool | Use it to |
Find objects, or archive records, by keyword and filters, including what is on view now | |
Get the full record, images and web page of one object | |
See which museums contribute, with their codes, record types and accepted names | |
Browse a varied sample of a topic across museums | |
Count what search can return, for the whole collection or one museum |
A typical session calls search_objects, then get_object for the objects worth a closer look. Results leave out empty fields rather than listing them as null. Problems you can fix, such as an unknown museum name, a year outside 1000 to 2999 or an object id that does not exist, come back as an error message that says what to change.
search_objects
Search the collections, with optional filters.
Parameter | Type | Default | Description |
| string |
| Keywords, matched anywhere in a record, descriptions and notes included. Every word must match. |
| string | none | Museum name or unit code, such as |
| string | none | Object type, such as |
| string | none | Creator, such as |
| string | none | Subject, such as |
| string | none | Material or medium, such as |
| integer or string | none | Earliest year, such as |
| integer or string | none | Latest year, with decade precision. |
| boolean |
| Only objects with online images. |
| boolean |
| Only objects with CC0 (public domain) media. |
| boolean | none |
|
| string |
|
|
| integer |
| Objects per page, 1 to 50. |
| integer |
| Position of the first object. Pass |
Output:
Field | Description |
| Number of matching records. |
| Number of objects in this page. |
| Offset of this page. |
| Offset of the next page. Always present; |
|
|
| Explains empty or doubtful results: every word in |
| Object summaries, described below. |
Each object summary has:
Field | Description |
| Object id, for |
| Title, without HTML markup. |
| Up to 3 makers. Makers are the creator roles a record names, such as artist, manufacturer, photographer or performer. |
| With a |
| Date as the museum records it, such as |
| The museum that holds the object. |
| Object type: the indexed term that the |
| Whether the object is on physical exhibit now. Always present. |
| The exhibition, such as |
| For archive records, the archival collection that holds the record. |
| Small image, when the record has one. |
| The object's page on the museum website: the record's own link, else the museum's URL pattern for the record id, else the record's persistent ark link, else its |
Example:
search_objects(query="muppet", museum="American History", on_view=true)At the time of writing this finds 12 objects. The first page holds 10, of which two are shown, and offset=10 returns the last two:
{
"total_count": 12,
"returned": 10,
"offset": 0,
"next_offset": 10,
"museum": {
"code": "NMAH",
"name": "National Museum of American History"
},
"objects": [
{
"id": "ld1-1643398912743-1643398932982-0",
"title": "Elmo Puppet",
"maker": ["Clash, Kevin", "Dillon, Ryan", "Henson, Jim"],
"date": "1984",
"museum_code": "NMAH",
"museum_name": "National Museum of American History",
"object_type": "Puppets",
"on_view": true,
"exhibition_title": "Entertainment Nation",
"exhibition_location": "National Museum of American History, Washington, DC",
"web_url": "https://americanhistory.si.edu/collections/object/nmah_1444757"
},
{
"id": "ld1-1643399134763-1643399177676-0",
"title": "The Muppets Lunch Box",
"maker": ["King Seeley Thermos", "Thermos"],
"date": "1979",
"museum_code": "NMAH",
"museum_name": "National Museum of American History",
"object_type": "Lunchboxes",
"on_view": true,
"exhibition_title": "Taking America To Lunch",
"exhibition_location": "National Museum of American History, Washington, DC",
"web_url": "https://americanhistory.si.edu/collections/object/nmah_1182905"
}
]
}These records have no images in Open Access, so they have no thumbnail_url. The other objects are the Fozzie Bear, Oscar the Grouch and Rosita puppets, Oscar's trash can and pieces of Mr. Hooper's costume from Sesame Street, all in "Entertainment Nation". Elmo's makers are the performers Kevin Clash and Ryan Dillon, and Jim Henson. Without on_view, the same search finds about 70 Muppet-related objects.
get_object
Get the full record for one object.
Parameter | Type | Description |
| string | The |
Output: every field of an object summary, with up to 10 makers instead of 3, plus:
Field | Description |
| The museum's record identifier, such as |
| Description, trimmed to 1,500 characters. |
| Summary, trimmed to 800 characters. |
| Further notes that do not repeat the description, trimmed to 1,000 characters. |
| Physical dimensions. |
| Materials, subjects and places, up to 12 of each. |
| How the museum acquired the object. |
| Rights or usage statement. |
| Whether the object has CC0 media that can be reused freely. Always present. |
| Up to 10 images. Each has |
| Total number of images, given only when there are more than 10. |
As in search results, empty fields are left out. An id that does not exist returns an error.
Example, for the Elmo puppet found above:
get_object(object_id="ld1-1643398912743-1643398932982-0")Returns, with the description and notes shortened here:
{
"id": "ld1-1643398912743-1643398932982-0",
"title": "Elmo Puppet",
"maker": ["Clash, Kevin", "Dillon, Ryan", "Henson, Jim"],
"date": "1984",
"museum_code": "NMAH",
"museum_name": "National Museum of American History",
"object_type": "Puppets",
"on_view": true,
"exhibition_title": "Entertainment Nation",
"exhibition_location": "National Museum of American History, Washington, DC",
"web_url": "https://americanhistory.si.edu/collections/object/nmah_1444757",
"record_id": "nmah_1444757",
"description": "This Elmo puppet was used on Sesame Street from about 1984 until the early 2000s. ...",
"notes": "Designed by the nonprofit Children's Television Workshop to teach basic reading, math, and life skills ...",
"dimensions": "overall: 14 in x 16 in x 11 in; 35.56 cm x 40.64 cm x 27.94 cm",
"materials": [
"plastic (overall material)",
"synthetic fur (overall material)",
"foam (overall material)"
],
"topics": [
"Jim Henson",
"Amusements",
"Sesame Street",
"Puppets",
"Children's television programs",
"Television broadcasts",
"In Pursuit of Life, Liberty, and Happiness"
],
"place": ["New York", "Queens", "United States"],
"credit_line": "A Gift from the Family of Jim Henson: Lisa Henson, Cheryl Henson, Brian Henson, John Henson and Heather Henson",
"is_cc0": false
}The museum website shows photos of Elmo under usage conditions, but Open Access publishes none, so the record has no images or thumbnail_url and is_cc0 is false. Many other objects, such as the Asian Art tea bowls in Search tips, have CC0 images.
list_museums
List the Smithsonian units that contribute to Open Access. It takes no parameters and makes at most one request, cached for the life of the server.
Output: a list with one entry per unit:
Field | Description |
| Unit code, accepted by |
| Unit name. |
| The |
| Lowercase names that |
The list has 49 entries: the unit codes in the search index, plus NMNH, which covers every Natural History department (NMNHPALEO, NMNHBOTANY and the others). It has no counts; use get_collection_stats, whose counts match search results. Clients that read structured tool output receive the list wrapped as {"result": [...]}.
Example: list_museums() returns entries such as these:
[
{"code": "AAA", "name": "Archives of American Art", "record_types": ["archives"]},
{"code": "NMAA", "name": "National Museum of Asian Art", "record_types": ["objects"], "aliases": ["freer", "sackler", "asian art"]},
{"code": "NMAH", "name": "National Museum of American History", "record_types": ["objects"], "aliases": ["american history"]},
{"code": "SIA", "name": "Smithsonian Institution Archives", "record_types": ["objects", "archives"], "aliases": ["smithsonian archives"]}
]explore_topic
Get a varied sample of objects on a topic, for open-ended browsing.
Parameter | Type | Default | Description |
| string | required | Topic keywords, such as |
| string | none | Museum name or code, to explore one museum. |
| integer |
| Number of objects, 1 to 30. |
Output: the same fields as search_objects, plus facets:
Field | Description |
| Objects in the sampled pool by unit code, such as |
| The 10 most common object types in the pool. |
The tool takes the 100 most relevant matches with images (adding matches without images only when fewer than limit come back). Free-text matching also finds words in places and notes, so a lichen collected at Dinosaur National Monument matches "dinosaurs"; the tool therefore prefers objects whose title, type or subjects name the topic, and fills the sample with the other matches only when it runs out. It allocates picks to museums in proportion to their share of those objects, at least one each, and varies object types within a museum. The facets count the same objects. next_offset is always null, note says how many of the pool name the topic, and repeated calls can return different samples; use search_objects for a complete, paged list.
Example: in one run, explore_topic(topic="space exploration") returned 12 objects, among them a reconstructed Pioneer 10 mock-up, an engineering model of Mariner 2 and a model of the Hubble Space Telescope from Air and Space, a space-suit jumpsuit and a Flash Gordon comic strip from American History, a Palomar Observatory stamp plate proof from the Postal Museum and a print from Jules Verne's From the Earth to the Moon from the Libraries. Its facets were:
{
"museums": {"NASM": 18, "NMAH": 6, "SIA": 5, "NPM": 3, "SIL": 1},
"object_types": {
"Uncrewed spacecraft": 11,
"Archival materials": 5,
"Certified plate proofs": 3,
"Space suit": 2,
"Crewed spacecraft": 2,
"Lunchboxes": 2,
"Testing equipment": 1,
"Drawing; pen and ink": 1,
"Models": 1,
"Booklet, cereal box": 1
}
}get_collection_stats
Count what search can return, for the whole collection or one museum.
Parameter | Type | Default | Description |
| string | none | Museum name or unit code. Leave it out for the whole collection. |
Field | Description |
|
|
| Objects that |
| The same with |
| The same with |
| The same with |
Each figure is the total_count of the matching search_objects call, so counts always agree with search results. The four counts take four requests, cached for 6 hours per museum. The API's own statistics endpoint is not used: its per-museum totals include records that search cannot return and disagree with search by up to 2,000 times (2,360,167 for Air and Space against 1,012 searchable objects).
Example: get_collection_stats() returns:
{
"objects": 14520188,
"archive_records": 2820187,
"objects_with_images": 7495314,
"objects_with_cc0_media": 5254461
}and get_collection_stats(museum="Air and Space") returns:
{
"museum": {"code": "NASM", "name": "National Air and Space Museum"},
"objects": 1012,
"archive_records": 0,
"objects_with_images": 995,
"objects_with_cc0_media": 995
}Resources
URI | Content |
| The museum list from |
| The record from |
Clients that support resources can attach these to a conversation without a tool call.
Prompts
Prompt | Arguments | Purpose |
|
| Research a topic across the collections. |
|
| Analyze one object in depth. |
|
| Plan an exhibition from collection objects. |
|
| Build a lesson around collection objects. With |
|
| Find out what is on view at a museum. |
Search tips
Every word in
querymust match, so use 1 to 4 distinctive keywords and leave out questions and stop words. "Which Muppets are on display at the American History museum?" finds one puppet that is not on view, and the result'snotesays that the query reads like a sentence;query="muppet"withmuseum="American History"andon_view=truefinds the 12 objects above. Dropping stop words does not help: "Muppets display American History museum" finds 3 objects, none on view.Use
ORfor alternatives, as inquery="quilt OR coverlet". Lowercaseorbetween two words works too.Put names in
maker, notquery.maker="Winslow Homer"also matches the indexed form "Homer, Winslow", andsearch_objects(maker="Winslow Homer", object_type="Paintings")returns works such as "Girl Shelling Peas" and "White Mountain Wagon" from Cooper Hewitt, each withobject_type"Paintings". Art is well covered:object_type="Paintings"alone matches thousands of records.querymatches every part of a record, so a name inqueryalso finds works that only mention the person:query="Hokusai"withmuseum="Asian Art"andon_view=truereturns a Whistler painting whose notes mention Hokusai.maker="Hokusai"finds works by him, andmaker_matchisfalseon any result where the name is not one of the makers.The National Museum of Asian Art and the National Museum of African Art do not index creator names; the indexed names at Asian Art are collectors and dealers such as Charles Lang Freer. At those two museums
makeris matched as keywords anywhere in the record, in any order, so a single name such as "Hokusai" works. The match is precise for artists (159 of the 167 Asian Art records that mention Hokusai are by him), buttotal_countincludes the rest, and the result'snotesays so.museumaccepts names or codes. "Asian Art", "Freer",NMAAand the retired codeFSGall search the National Museum of Asian Art, "African American Museum" searches the National Museum of African American History and Culture, and "Natural History" orNMNHsearches every Natural History department. Every distinctive word of a name must match, so an unknown name returns an error rather than a guess. "Smithsonian" and "Smithsonian Institution" mean every museum, so no filter is applied and thenotesays so.Dates have decade precision, so
date_from=1863starts at 1860, and decades such as"1860s"are accepted.search_objects(query="Lincoln", museum="American History", date_from=1860, date_to=1869)returns items such as a Lincoln campaign flag from 1864 and a parade axe from 1860. Some records, notably library books, are dated by their subject, sodate_from="1860s"alone also finds books published in 2008 about the period. Years must be from 1000 to 2999.on_view=truereturns objects on physical exhibit now, with exhibition titles and locations. Natural History publishes no exhibit data, soon_view=truewith Natural History always returns nothing, and without a museum it never includes Natural History objects; the result'snotesays so in both cases.Archive records (finding aids, folders and items such as letters and photographs) are searched with
record_type="archives". 14 units, such as the Archives of American Art, publish only archive records;list_museumsshows theirrecord_typesas["archives"], and an object search limited to one of them returns an error that says to userecord_type="archives".search_objects(query="letters", museum="Archives of American Art", record_type="archives")finds about 17,500 records, each with itscollection.cc0_only=truekeeps objects whose media can be reused freely.search_objects(query="tea bowl", museum="Asian Art", cc0_only=true)returns Hagi and Raku ware tea bowls with CC0 images.Never construct Smithsonian URLs; use
web_url. URL formats differ by museum and are case-sensitive.
Migrating from 1.x
Version 2.0 replaces all 28 tools of 1.x with 5. Calls to a 1.x tool name fail, so update any prompts, scripts or mcpo endpoint URLs that use them.
Removed tools
Removed | Use instead |
|
|
| No replacement needed; results are already compact |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Breaking changes
Tool names: every 1.x tool is gone, as listed above. Through mcpo the endpoints change too, so
/smithsonian_open_access/get_smithsonian_unitsbecomes/smithsonian_open_access/list_museums.Counts:
get_collection_statsreports counts that match search results instead of the API's statistics, andlist_museumsno longer reports counts.Output shapes: searches return compact summaries instead of full records, and fields are renamed.
unit_codeis nowmuseum_code,unit_nameismuseum_name,is_on_viewison_viewandreturned_countisreturned.has_moreis gone;next_offsetisnullon the last page. Links to object pages are inweb_url. Empty fields are left out instead of being returned asnull.Parameters:
museumtakes names or codes and replacesunit_code. Theis_cc0filter is nowcc0_only,limitdefaults to 10 with a maximum of 50 (it was 500),date_fromanddate_tofilter by date, andrecord_type="archives"searches archive records.Asian Art is unit code
NMAA.FSGis still accepted as an alias, but results reportNMAA.is_cc0on an object now means the object has CC0 media. Records with CC0 text but restricted or no media, such as copyrighted objects at the National Museum of African American History and Culture, are no longer reported as CC0.Prompts drop the
_promptsuffix from their names, and six prompts that only restated tool usage are removed. See the changelog.
Integration
Claude Desktop
See Quick Start for Claude Desktop configurations using uvx, npm/npx, a local clone, a virtual environment or Docker. A ready-to-copy example is in examples/claude-desktop-config.json.
mcpo Integration (MCP Orchestrator)
mcpo is an MCP orchestrator that converts multiple MCP servers into OpenAPI/HTTP endpoints, ideal for combining multiple services into a single systemd service.
Installation
# Install mcpo as a uv tool
uv tool install mcpo
# Or run it without installing
uvx mcpo --helpConfiguration
Copy examples/mcpo-config.json to mcpo-config.json in the project root and fill in your paths and API key, or let config/setup.sh generate it. The generated file contains your API key, so do not commit it. A minimal configuration:
{
"mcpServers": {
"smithsonian_open_access": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/molanojustin/smithsonian-mcp",
"smithsonian-mcp"
],
"env": {
"SMITHSONIAN_API_KEY": "your_api_key_here"
}
},
"memory": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-memory"]
},
"time": {
"command": "uvx",
"args": ["mcp-server-time", "--local-timezone=America/New_York"]
}
}
}Running with mcpo
# Start mcpo with hot-reload
mcpo --config mcpo-config.json --port 8000 --hot-reload
# With API key authentication
mcpo --config mcpo-config.json --port 8000 --api-key "your_secret_key"
# Access endpoints:
# - Smithsonian: http://localhost:8000/smithsonian_open_access
# - Memory: http://localhost:8000/memory
# - Time: http://localhost:8000/time
# - API docs: http://localhost:8000/docsSystemd Service
Create /etc/systemd/system/mcpo.service:
[Unit]
Description=MCP Orchestrator Service
After=network.target
[Service]
Type=simple
User=your-user
WorkingDirectory=/path/to/your/config
Environment=PATH=/path/to/venv/bin
ExecStart=/path/to/venv/bin/mcpo --config mcpo-config.json --port 8000
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target# Enable and start service
sudo systemctl enable mcpo
sudo systemctl start mcpo
sudo systemctl status mcpoTroubleshooting mcpo
See TROUBLESHOOTING.md for detailed mcpo troubleshooting, including:
ModuleNotFoundError solutions
Connection closed errors
Port conflicts
Path configuration issues
VS Code
Open the clone with code .. After uv sync --group dev, .vscode/tasks.json provides tasks to start the server, run the tests, format and lint the code, and open the MCP Inspector, and .vscode/launch.json provides debugger configurations for the server and the tests.
Requirements
For uvx or a local clone:
uv, which installs Python 3.10 or newer if needed
API key from api.data.gov (free)
Internet connection for API access
For npm/npx installation:
Node.js 16.0 or higher
uv (the wrapper uses it to install the Python dependencies)
API key from api.data.gov (free)
Internet connection for API access
For a virtual environment without uv:
Python 3.10 or higher (CI tests 3.10 through 3.14)
API key from api.data.gov (free)
Internet connection for API access
Testing
Using npm/npx:
# Test API connection
smithsonian-mcp --test
# Run MCP server (stdio)
smithsonian-mcp
# Run MCP server over HTTP at http://127.0.0.1:8000/mcp
smithsonian-mcp --transport http
# Show help
smithsonian-mcp --helpFrom a local clone:
# Install runtime and development dependencies
uv sync --group dev
# Test API connection
uv run python examples/test-api-connection.py
# Run MCP server (stdio; normally your MCP client starts it)
uv run smithsonian-mcp
# Explore the server interactively with the MCP Inspector
npx @modelcontextprotocol/inspector .venv/bin/smithsonian-mcp
# Run the offline test suite (no API key or network needed)
uv run pytest tests/
# Run the opt-in live tests (they use your API key and its rate limit)
SMITHSONIAN_LIVE_TESTS=1 uv run pytest tests/ -m live
# Check formatting and lint, as CI does
uv run black --check smithsonian_mcp/ tests/ examples/ scripts/ .github/scripts/
uv run pylint smithsonian_mcp/
# Verify complete setup
uv run python scripts/verify-setup.pyThe offline tests block outgoing network access and answer API requests from tests/fake_api.py, so they need no key. The test files are:
File | Covers |
| The five tools, resources and prompts, against the fake API |
| Free-text parsing and the filter clauses of the |
| Record parsing, units, the shared client, logging and the entry points |
| The transport options, and servers started in HTTP mode, including the |
| On-view filters and exhibition fields |
| Museum name resolution, unit codes and page URLs |
| API errors, and that the key stays out of URLs and logs |
| Configuration, models and client setup |
| Live API checks of the client and the tools (opt-in) |
Service Management
The setup scripts can register the server as a background service. The service runs the server with --transport http --host 127.0.0.1 --port 8000, so it stays up and serves MCP at http://127.0.0.1:8000/mcp for clients that connect over HTTP (see HTTP transport). It reads the API key from .env in the project root, which the scripts make readable by your user only. Running a setup script again rewrites the service and reloads or restarts it, so it picks up the new settings. MCP clients such as Claude Desktop start their own stdio server, so they do not need the service. To expose the tools as OpenAPI endpoints instead, run them behind mcpo.
Linux (systemd)
# Start service
systemctl --user start smithsonian-mcp
# Stop service
systemctl --user stop smithsonian-mcp
# Check status
systemctl --user status smithsonian-mcp
# Enable on login
systemctl --user enable smithsonian-mcpWhen ~/.config/systemd/user does not exist, the script installs a system service instead; manage it with sudo systemctl and no --user.
macOS (launchd)
# Load service
launchctl load ~/Library/LaunchAgents/com.smithsonian.mcp.plist
# Unload service
launchctl unload ~/Library/LaunchAgents/com.smithsonian.mcp.plist
# Check status
launchctl list | grep com.smithsonian.mcpThe server's log is ~/Library/Logs/com.smithsonian.mcp.log.
Windows
# Start service
Start-Service SmithsonianMCP
# Stop service
Stop-Service SmithsonianMCP
# Check status
Get-Service SmithsonianMCPsmithsonian-mcp.exe is a console program, so the Windows service starts only when it is wrapped by a service host such as NSSM.
Troubleshooting
TROUBLESHOOTING.md covers:
API key and rate limit errors
Searches that return nothing, including on-view searches at Natural History
Old 1.x tool names that no longer work
Claude Desktop connection and server startup problems
HTTP mode, background services and Docker
Module import errors and mcpo setup
Documentation
README.md: setup and tool reference (this file)
TROUBLESHOOTING.md: common problems and fixes
CHANGELOG.md: changes between versions
examples/: Claude Desktop and mcpo configurations and an API connection testscripts/: setup verification
Contributing
Fork the repository
Create a feature branch
Make your changes
Run the tests, black and pylint (see Testing); CI runs all three
Submit a pull request
The package is organized by responsibility:
Module | Contents |
| Command line entry point, logging setup and the stdio and HTTP transports |
| The FastMCP server, its instructions and registration |
| The five tools |
| Result summaries and records, result notes, and the |
| MCP resources and prompts |
| HTTP client for the Open Access API and its error mapping |
| Free-text query parsing and the filter clauses of the |
| Records parsed into |
| The shared API client and the server lifespan |
| Data models, static tables, museum names and URLs, settings |
License
MIT License. See LICENSE.md.
Acknowledgments
Smithsonian Institution for the Open Access collections
api.data.gov for the API infrastructure
The FastMCP team for the MCP framework
The Model Context Protocol community
Available Tools
5 toolsexplore_topicExplore TopicARead-onlyIdempotent
A varied sample of objects about a topic, spread across museums in proportion to their matches and across object types, with counts by museum and type. Prefers objects with images whose title, type or subject names the topic. Use it for open-ended browsing; use search_objects to find specific things. Calls can return different samples.
Inputs: topic (required), limit, museum. Returns: A varied random sample of objects about a topic.
get_collection_statsGet Collection StatsARead-onlyIdempotent
Counts of searchable objects, archive records, objects with images and objects with CC0 media, for the whole collection or one museum. Each count equals the total_count of the matching search_objects call.
Inputs: museum. Returns: Searchable record counts for the whole collection or one museum.
get_objectGet ObjectARead-onlyIdempotent
Full record of one object: description, notes, materials, topics, rights, up to 10 images and the web_url of its page.
Inputs: object_id (required). Returns: The full record of one object.
list_museumsList MuseumsARead-onlyIdempotent
Smithsonian units in Open Access: codes, names, the record_type values that return their records, and the names the museum argument accepts. For counts use get_collection_stats.
Inputs: no named parameters. Returns: result
search_objectsSearch ObjectsARead-onlyIdempotent
Search Smithsonian collection objects by keyword and filters. Returns compact summaries; pass an id to get_object for the full record. For "how many" questions use limit=1 and read total_count. For works by a person use maker, since query also matches records that only mention them.
Inputs: limit, maker, query, topic, +10 more. Returns: A page of search results.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct primary purpose: search_objects for specific queries, get_object for full records, list_museums for museum metadata, explore_topic for open-ended browsing, and get_collection_stats for aggregate counts. However, search_objects also advertises using it for 'how many' questions via total_count, which overlaps with get_collection_stats and could cause misselection for count queries.
All tool names follow a consistent snake_case verb_noun pattern (search_objects, get_object, list_museums, explore_topic, get_collection_stats). The verbs are descriptive and predictable, making the set easy to scan.
With only 5 tools, the set is well-scoped for the Smithsonian Open Access domain. Each tool covers a distinct access pattern (search, retrieve, list, explore, aggregate) without redundancy, making it easy to navigate.
The tools cover core workflows: searching, retrieving full records, listing museums, browsing topics, and getting statistics. Minor gaps exist—such as no dedicated tool to list available topics or object types, and no direct media download—but these can be worked around via existing tools.
Maintenance
Related MCP Connectors
Search 14.5M Smithsonian Open Access objects, get CC0 images, find cross-collection connections.
Unlock a world of art with the Met Museum MCP! Use the 'search_artworks' API to find stunning
Search the Met collection, browse by department or update date, fetch full records and CC0 images.
Discover, inspect and run 63,000+ agent tools from one balance. Pay per call, no subscriptions.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to search and explore over 570,000 artworks from the Metropolitan Museum of Art and Art Institute of Chicago without needing an API key.92MIT
- AlicenseNot gradedqualityDmaintenanceEnables searching and exploring millions of items from the Smithsonian Institution's collections including artifacts, artworks, specimens, photographs, and more, using the Smithsonian Open Access API.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables searching and retrieving detailed information about items from the Smithsonian Open Access collection, including metadata and images.293 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables searching 14.5M Smithsonian Open Access objects, retrieving CC0 images, and exploring museum collections via MCP with 6 tools.213 npm2Apache 2.0