Skip to main content

MCP server for the British Natural History Museum data API

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 run at http://localhost:5173.

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

natural_history_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.

natural_history_museum_mcp-0.1.22-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for natural_history_museum_mcp-0.1.22.tar.gz
Algorithm Hash digest
SHA256 4dda4665a777b1443c790a14e5669dd21e8eac5b8fd13dd1a2ef9fb9f80bc7e6
MD5 02bb5842b998c1cf2b98c728c63b6ce5
BLAKE2b-256 c239a1982648fc7511c0ccac1da2156a2c0d26fb536a7d503217343c0cb15113

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for natural_history_museum_mcp-0.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 cf7ccd0bf54e4f3f10697ccf7296e1f96966cc622a27bdd11af47cba8f8cead3
MD5 289e76b519e2e0cfdd756ae52451cdf6
BLAKE2b-256 3dcaca15ab4022844a9df97958ad9e06158d754bd03fa7cf090a09ed39ab0a6b

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