BAMCP
by RTrentJones
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BAMCP_HOST | No | HTTP bind address (the Docker image sets 0.0.0.0). | 127.0.0.1 |
| BAMCP_PORT | No | HTTP port. | 8000 |
| BAMCP_MIN_VAF | No | Minimum allele fraction for candidate variants. | 0.10 |
| BAMCP_PREWARM | No | Warm the demo datasets in the background at startup (HTTP transports only). | true |
| BAMCP_MIN_MAPQ | No | Minimum mapping quality filter. | 20 |
| BAMCP_CACHE_DIR | No | Directory for downloaded index files (falls back to a temp dir if the default is not writable). | ~/.cache/bamcp |
| BAMCP_CACHE_TTL | No | Index and region cache lifetime (seconds). | 86400 |
| BAMCP_MAX_READS | No | Maximum reads returned for display per region (coverage and variant counts are not capped). | 10000 |
| BAMCP_MIN_BASEQ | No | Minimum base quality for coverage and candidate variant counts. | 13 |
| BAMCP_MIN_DEPTH | No | Minimum depth for candidate variants. | 2 |
| BAMCP_REFERENCE | No | Default reference FASTA (needed to decode CRAM and for SNV/indel detection). | |
| BAMCP_TRANSPORT | No | Transport mode: stdio, sse, streamable-http. | stdio |
| BAMCP_ISSUER_URL | No | OAuth issuer URL. | http://localhost:8000 |
| BAMCP_RATE_LIMIT | No | Requests per minute per client IP (every MCP JSON-RPC message counts). | 120 |
| BAMCP_AUTH_ENABLED | No | Enable auth (true/false). | false |
| BAMCP_GENOME_BUILD | No | Default build for lookups and search_gene without a BAM (GRCh37/hg19/b37 or GRCh38/hg38). | GRCh38 |
| BAMCP_NCBI_API_KEY | No | Optional NCBI E-utilities API key (10 req/s instead of 3); ClinVar/gene lookups retry NCBI 429s with bounded backoff either way. | |
| BAMCP_TOKEN_EXPIRY | No | Access token lifetime (seconds). | 3600 |
| BAMCP_VERIFY_TOKEN | No | M2M service token (a single bearer accepted statelessly). | |
| BAMCP_MIN_ALT_COUNT | No | Minimum reads supporting the alternative allele. | 3 |
| BAMCP_TRUSTED_HOSTS | No | Comma-separated allowed Host headers (DNS-rebinding protection). | |
| BAMCP_DEFAULT_WINDOW | No | Default jump_to window size (bp). | 500 |
| BAMCP_GNOMAD_DATASET | No | gnomAD dataset; auto picks by build, an explicit dataset must match the lookup's build. | auto |
| BAMCP_GNOMAD_ENABLED | No | Enable gnomAD lookups (off → status: disabled). | true |
| BAMCP_TELEMETRY_OTEL | No | Export via OpenTelemetry (needs the [telemetry] extra). | false |
| BAMCP_TELEMETRY_PATH | No | JSONL output file (empty disables file output). | |
| BAMCP_CLINVAR_ENABLED | No | Enable ClinVar lookups (off → status: disabled). | true |
| BAMCP_REQUIRED_SCOPES | No | Comma-separated required scopes (defaults to bamcp:read when auth is on). | |
| BAMCP_ALLOW_LOCAL_FILES | No | Accept caller-supplied local paths (BAM/CRAM, VCF, reference). Set false on a remote-only server; the operator's BAMCP_REFERENCE still works. | true |
| BAMCP_MAX_REQUEST_BYTES | No | Largest HTTP request body accepted (413 above it); OAuth endpoints are capped at 64 KiB. | 1048576 |
| BAMCP_TELEMETRY_ENABLED | No | Enable tool-call telemetry. | false |
| BAMCP_ALLOW_REMOTE_FILES | No | Allow http:// / https:// BAM/CRAM/VCF/reference URLs (no other scheme is ever accepted). | false |
| BAMCP_ALLOWED_DIRECTORIES | No | Comma-separated local dirs that file paths must be under. | |
| BAMCP_RESOURCE_SERVER_URL | No | OAuth resource server URL. | http://localhost:8000 |
| BAMCP_ALLOWED_REMOTE_HOSTS | No | Comma-separated host allow-list for remote fetch (the real SSRF control). | |
| BAMCP_MAX_INDEX_CACHE_BYTES | No | Total size cap for the on-disk index cache. | 536870912 |
| BAMCP_MAX_REMOTE_INDEX_BYTES | No | Maximum remote BAM/CRAM index download size. | 67108864 |
| BAMCP_ALLOW_DYNAMIC_REGISTRATION | No | Allow OAuth dynamic client registration. | false |
| BAMCP_RATE_LIMIT_TRUSTED_PROXIES | No | IPs/CIDRs whose CF-Connecting-IP / X-Forwarded-For headers are trusted. | loopback (127.0.0.1, ::1) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues