Skip to main content

MCP server for the Ersilia Model Hub

A Model Context Protocol server built on the official FastMCP SDK. It lets MCP clients search the Ersilia Model Hub catalog and fetch, serve, and run its AI/ML models, all over stdio.

Primitive Name Description
Tool search_model Searches the Ersilia model hub catalog by keyword.
Tool fetch_model Downloads a model to the local machine.
Tool check_model_fetched Reports whether a model has already been fetched.
Tool serve_model Starts a fetched model so it can accept predictions.
Tool generate_inputs Samples example inputs from a served model and writes them to a file.
Tool predict Runs predictions with a served model and writes a CSV.
Tool close_model Stops a served model and frees its resources.
Tool delete_model Deletes a fetched model from local storage.
Tool inspect_isaura_cache Reports how many inputs are already cached in Isaura.
Tool read_precalculations_from_isaura Retrieves cached results instead of recomputing them.
Tool write_precalculations_to_isaura Stores results so they can be read back later.
Tool persist_isaura_data Routes a project bucket's rows into the shared Isaura buckets.
Tool remove_from_isaura Removes specific inputs from a model's data in a bucket.

A typical workflow is search_model → fetch_model → serve_model → predict → close_model. You can optionally call generate_inputs after serving to sample example inputs to feed into predict, and delete_model to remove the model from local storage.

The last five tools use an Isaura precalculation store, which holds results computed earlier. Call inspect_isaura_cache to see how much of your input is already covered, then read_precalculations_from_isaura to pull those results back without serving the model at all. Feed a predict output CSV to write_precalculations_to_isaura to cache results for next time. persist_isaura_data and remove_from_isaura manage what is stored (both require an explicit bucket; removal is destructive). A running store is required; see DEVELOPMENT.md.

Installation

Ensure you have the following installed:

Clone the repository locally using git:

git clone git@github.com:ersilia-os/ersilia-mcp.git

Create a new virtual conda environment, activate it, and install the necessary packages:

conda create -n ersilia-mcp python=3.12
conda activate ersilia-mcp
pip install poetry
poetry config virtualenvs.create false --local
poetry env use $(which python)
poetry install

Client Setup & Registration

This MCP server has been tested mainly on Claude (specifically using Claude Code), but it supports any Model Context Protocol (MCP) host or model provider (such as Gemini or ChatGPT) that supports local stdio MCP servers.

Note on Claude Code: This repository is set up to be automatically configured with Claude Code out of the box. It includes a project-scoped .mcp.json configuration file so that when you run Claude Code in this workspace, the Ersilia MCP server is registered and started automatically.

Currently, we only have dedicated setup and registration documentation for:

We would love to receive documentation updates and setup guides for other MCP clients and platforms. If you have successfully set up this server with another client, please consider adding a new setup guide to docs/mcp_setup/! See CONTRIBUTING.md for contribution guidelines.

For further details on manual registration, debugging, or full development setup, please see DEVELOPMENT.md.

About the Ersilia Open Source Initiative

The Ersilia Open Source Initiative is a tech-nonprofit organization fueling sustainable research in the Global South. Ersilia's main asset is the Ersilia Model Hub, an open-source repository of AI/ML models for antimicrobial drug discovery.

Ersilia Logo

Metadata

Release files for ersilia-mcp 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ersilia-mcp 1.1.0
File Size Uploaded Provenance Actions
ersilia_mcp-1.1.0.tar.gz 27.7 kB Without provenance Details for ersilia_mcp-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ersilia-mcp 1.1.0
File Interpreter ABI Platform Actions
ersilia_mcp-1.1.0-py3-none-any.whl Python 3 none any Details for ersilia_mcp-1.1.0-py3-none-any.whl

Total release size: 65.2 kB

Release files / ersilia_mcp-1.1.0.tar.gz

Download URL ersilia_mcp-1.1.0.tar.gz
Size 27.7 kB
Tags Source
SHA-256 checksum
How to use checksums
411f9561d9b09422a14a3512d233e7cbcab6b100e417b6b9234cc2d360b12368
BLAKE2b-256 checksum
How to use checksums
ae00f5723de76cb07d8acd066a93a5a4a5211b2e925ac78342b33ad69c1671c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.3 Linux/7.0.0-1017-azure

Release files / ersilia_mcp-1.1.0-py3-none-any.whl

Download URL ersilia_mcp-1.1.0-py3-none-any.whl
Size 37.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c284cc07885c2ec6ddfdaa6fc933abeb1aa7286db73aff61a9c39a29b05743f9
BLAKE2b-256 checksum
How to use checksums
66b3adf5068037e7baaaa67005dd04534e628e55069ce5d3a6bcb99c0d2aaabb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.3 Linux/7.0.0-1017-azure

Security for ersilia-mcp 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page