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.21.tar.gz (5.0 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.21-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for natural_history_museum_mcp-0.1.21.tar.gz
Algorithm Hash digest
SHA256 8eddc2cb4926e0fd3824b5fb8db9e1ce56c53aae7940b1e713c386eacafb7a10
MD5 224fb3b48bd36bab01b99562891afa94
BLAKE2b-256 d0d5fca0f0e75a2b15685cf622569a0e774ade0973d0e6fa5e1f7b84cc1eb2c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for natural_history_museum_mcp-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 d1e37d67b8fcffd008e24ef44624b4ff1f47619ab61d5c6baba4a96e30c06ae2
MD5 7253c8820f0ffacaaaa3d83e1aa6ed16
BLAKE2b-256 01fb797d783b986aa98af8e4e56899617054e9c2d76d5f6f2c913dc4f8e74dc8

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