Skip to main content

Modulector SDK

Typed Python SDK for the Modulector API. The package contains client helpers for querying predicted and experimentally validated miRNA target interactions, miRNA aliases, methylation sites, disease associations, drug associations, and PubMed subscriptions without installing the Django backend dependencies.

Installation

pip install modulector-sdk

Usage

from modulector_sdk import (
    get_mirna_details,
    get_mirna_target_interactions,
    get_mirna_target_validations,
)

details = get_mirna_details("hsa-miR-21-5p")
interactions = get_mirna_target_interactions(
    mirna="hsa-miR-21-5p",
    gene="PTEN",
    include_pubmeds=True,
)
validations = get_mirna_target_validations(
    mirna="hsa-miR-122-5p",
    target="SLC7A1",
    experiment="Western blot",
)

Set MODULECTOR_API_BASE_URL to target a different Modulector deployment:

MODULECTOR_API_BASE_URL=https://your-modulector.example.org python script.py

Every service function also accepts a base_url keyword argument for per-request overrides.

MCP server

The SDK also installs a Model Context Protocol server that exposes the same service functions as LLM-callable tools.

For local stdio MCP clients:

modulector-mcp

Example client configuration:

{
  "mcpServers": {
    "modulector": {
      "command": "modulector-mcp"
    }
  }
}

For Streamable HTTP clients:

modulector-mcp --transport streamable-http --host 127.0.0.1 --port 8000

Then connect the client to http://127.0.0.1:8000/mcp.

The server includes tools for predicted and experimentally validated miRNA target interactions, miRNA details and aliases, miRNA identifier resolution, methylation site lookup and annotation, disease associations, drug associations, and PubMed news subscriptions. Use MODULECTOR_API_BASE_URL or each tool's base_url argument to target a custom Modulector deployment.

When deployed with the root Docker Compose stack, nginx proxies the MCP Streamable HTTP endpoint at https://<mydomain.com>/mcp.

Development

Build this SDK from the sdk/ directory:

uv build

The generated source distribution and wheel are written to sdk/dist/.

Metadata

Release files for modulector-sdk 2.6.4

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

Source distribution (sdist)

Source distribution for modulector-sdk 2.6.4
File Size Uploaded Provenance Actions
modulector_sdk-2.6.4.tar.gz 13.7 kB Without provenance Details for modulector_sdk-2.6.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for modulector-sdk 2.6.4
File Interpreter ABI Platform Actions
modulector_sdk-2.6.4-py3-none-any.whl Python 3 none any Details for modulector_sdk-2.6.4-py3-none-any.whl

Total release size: 28.6 kB

Release files / modulector_sdk-2.6.4.tar.gz

Download URL modulector_sdk-2.6.4.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fda1d45cbc1ec838f70524c4b4a2ee1b20d3d383277f86fc19b6bb547111d8cf
BLAKE2b-256 checksum
How to use checksums
1a4556c184b92b75807b894d9041c95eff4e4c7323fab3363a9aa2f99675d278
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / modulector_sdk-2.6.4-py3-none-any.whl

Download URL modulector_sdk-2.6.4-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a232086a3f11f9880958dfdf125d06d8dc26a722314e75d42582f0e9a8155e8
BLAKE2b-256 checksum
How to use checksums
b421687e21de58eeff631f0c2f37962a75ff80af1e9b387849e4ea9d3d1b0721
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for modulector-sdk 2.6.4

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