Developers / REST · Python · MCP
Build with Polymer
Use the same genomic reference data in your scripts, notebooks, and compatible AI agents.
Before you start
API access
Set your API key as POLYMER_API_KEY in your environment. REST requests send it in the X-API-Key header. To request access, contact Polymer.
Examples use GRCh38 / hg38 and 1-based, inclusive coordinates. GRCh37 / hg19 is exposed as hg37 in the API. Layer availability depends on the assembly; check data sources before switching builds. Changing the build parameter does not convert coordinates.
01 / REST
Make a region request
Fetch CpG-site annotations for an interval around TP53. Inspect the response for coordinate conventions, data versions, and resolved layers.
02 / Python
Bring a region into your notebook
Install the Python client, then make the same request. The client returns dictionaries; inspect the response before selecting fields.
03 / MCP
Connect a compatible agent
Install uv first; its uvx command runs the Polymer MCP package. Copy the local stdio configuration into a client that accepts mcpServers entries.
Merge this entry into your client’s MCP configuration, replace YOUR_API_KEY with your key, then reload the client. Confirm that the Polymer tools appear before making requests. Client configuration formats may differ.