REST API, Model Context Protocol server, and Python SDK for genome-wide DNA biophysics. Every response carries provenance, evidence class, and content hash.
§ 01
Overview
The Polymer API serves the material channel of the genome — stacking energy, curvature, flexibility, groove geometry — computed at base-pair resolution across 50 layers. Every response includes api_version, data_version, an evidence class (M / K / D / S / H), source URI, license, and a content hash so agents and downstream pipelines can audit and cache.
Base URL
https://api.polymerbio.org
API Version
v1 · stable
SDK
pip install polymer-genomics
§ 02
Quickstart
Install the SDK and fetch your first region. The example uses the TP53 locus on hg38.
bash
pip install polymer-genomics
python
import os
from polymer_genomics import PolymerClient
with PolymerClient(api_key=os.environ["POLYMER_API_KEY"]) as client:
region = client.region(
"hg38", "chr17:7668421-7687490", layers=["cpg_sites"]
)
print(region)
Without an SDK, hit the REST API directly. Use the curl below — any HTTP client works.
Send your API key in the X-API-Key header. See the developer quickstart for access instructions.
§ 04
Endpoints
Reference endpoints return curated data with provenance. Compute endpoints run the physics linter or aggregate over a region. All responses include data_version and content-hash headers.
Reference
GET/v1/regions/{build}/{region}Region biophysics
Fetch genome-wide biophysics columns for a region. Returns stacking ΔG, melting Tm, curvature, groove geometry, A-form / Z-form propensities at 1 kb resolution.
Parameters
build*path · string—Genome build (hg38 or hg37).
region*path · string—1-based closed UCSC region, e.g. chr17:7668421-7687490.
layersquery · string—Comma-separated layer ids to include.
result = client.evaluate("ATGCGATCGATCG...", analysis="full")
print(result.summary.gc_content, result.flag_counts.warnings)
§ 05
MCP for agents
The Model Context Protocol server exposes 70 tools to LLM agents — 38 reference and 32 compute. Connect a local agent through stdio using the configuration below. Install uv first and replace YOUR_API_KEY with your API key.