Skip to main content

MCP Server for the British Science Museum

Project description

A Model Context Protocol Server for the British Natural History Museum Data API

This project is a Python MCP (https://modelcontextprotocol.io/introduction) server that allows your LLM to fetch data from the British Natural History Museum. Data can be fetched from their Specimens or Index Lots collections. More info on their Data API is available at https://naturalhistorymuseum.github.io/dataportal-docs/#introduction.

Developing

This section is for anyone who wants to contribute to the codebase.

Setup and Install Dependencies

Clone the repository.

The project is configured to use uv (Install link: https://docs.astral.sh/uv/#installation) for dependency management and building. It uses npx (Install link: https://www.npmjs.com/package/npx) to run the MCP inspector.

Create a virtual env with

uv venv

And install dependencies with

uv pip install -r pyproject.toml

Run the inspector with

./inspector.sh

The inspector should output the localhost URL for accessing its UI.

Running Unit Tests

source .venv/bin/activate
pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

science_museum_mcp-0.1.22.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

science_museum_mcp-0.1.22-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file science_museum_mcp-0.1.22.tar.gz.

File metadata

  • Download URL: science_museum_mcp-0.1.22.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for science_museum_mcp-0.1.22.tar.gz
Algorithm Hash digest
SHA256 b8f35eff6a1bc46daac9342c2726d9320ab34b49463970e6eda9cdee62152d6f
MD5 a55bad86342e5245959d26627372f070
BLAKE2b-256 c05fd52247125fa749d59a10eb03eaf7bd5472b21f6a76c6bf6ba91f3b57c5f7

See more details on using hashes here.

File details

Details for the file science_museum_mcp-0.1.22-py3-none-any.whl.

File metadata

File hashes

Hashes for science_museum_mcp-0.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 1c291716bd68b193da46d6b098b38e8d462409e3954dd5854220ebe460b8c78d
MD5 3cb212f863a003ade58ad10e39698aa6
BLAKE2b-256 6762fd28355594e6158bf45091fbbc3db408e29b0dcd213b1cb4bbd1017ec743

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page