Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BAMCP_HOSTNoHTTP bind address (the Docker image sets 0.0.0.0).127.0.0.1
BAMCP_PORTNoHTTP port.8000
BAMCP_MIN_VAFNoMinimum allele fraction for candidate variants.0.10
BAMCP_PREWARMNoWarm the demo datasets in the background at startup (HTTP transports only).true
BAMCP_MIN_MAPQNoMinimum mapping quality filter.20
BAMCP_CACHE_DIRNoDirectory for downloaded index files (falls back to a temp dir if the default is not writable).~/.cache/bamcp
BAMCP_CACHE_TTLNoIndex and region cache lifetime (seconds).86400
BAMCP_MAX_READSNoMaximum reads returned for display per region (coverage and variant counts are not capped).10000
BAMCP_MIN_BASEQNoMinimum base quality for coverage and candidate variant counts.13
BAMCP_MIN_DEPTHNoMinimum depth for candidate variants.2
BAMCP_REFERENCENoDefault reference FASTA (needed to decode CRAM and for SNV/indel detection).
BAMCP_TRANSPORTNoTransport mode: stdio, sse, streamable-http.stdio
BAMCP_ISSUER_URLNoOAuth issuer URL.http://localhost:8000
BAMCP_RATE_LIMITNoRequests per minute per client IP (every MCP JSON-RPC message counts).120
BAMCP_AUTH_ENABLEDNoEnable auth (true/false).false
BAMCP_GENOME_BUILDNoDefault build for lookups and search_gene without a BAM (GRCh37/hg19/b37 or GRCh38/hg38).GRCh38
BAMCP_NCBI_API_KEYNoOptional NCBI E-utilities API key (10 req/s instead of 3); ClinVar/gene lookups retry NCBI 429s with bounded backoff either way.
BAMCP_TOKEN_EXPIRYNoAccess token lifetime (seconds).3600
BAMCP_VERIFY_TOKENNoM2M service token (a single bearer accepted statelessly).
BAMCP_MIN_ALT_COUNTNoMinimum reads supporting the alternative allele.3
BAMCP_TRUSTED_HOSTSNoComma-separated allowed Host headers (DNS-rebinding protection).
BAMCP_DEFAULT_WINDOWNoDefault jump_to window size (bp).500
BAMCP_GNOMAD_DATASETNognomAD dataset; auto picks by build, an explicit dataset must match the lookup's build.auto
BAMCP_GNOMAD_ENABLEDNoEnable gnomAD lookups (off → status: disabled).true
BAMCP_TELEMETRY_OTELNoExport via OpenTelemetry (needs the [telemetry] extra).false
BAMCP_TELEMETRY_PATHNoJSONL output file (empty disables file output).
BAMCP_CLINVAR_ENABLEDNoEnable ClinVar lookups (off → status: disabled).true
BAMCP_REQUIRED_SCOPESNoComma-separated required scopes (defaults to bamcp:read when auth is on).
BAMCP_ALLOW_LOCAL_FILESNoAccept 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_BYTESNoLargest HTTP request body accepted (413 above it); OAuth endpoints are capped at 64 KiB.1048576
BAMCP_TELEMETRY_ENABLEDNoEnable tool-call telemetry.false
BAMCP_ALLOW_REMOTE_FILESNoAllow http:// / https:// BAM/CRAM/VCF/reference URLs (no other scheme is ever accepted).false
BAMCP_ALLOWED_DIRECTORIESNoComma-separated local dirs that file paths must be under.
BAMCP_RESOURCE_SERVER_URLNoOAuth resource server URL.http://localhost:8000
BAMCP_ALLOWED_REMOTE_HOSTSNoComma-separated host allow-list for remote fetch (the real SSRF control).
BAMCP_MAX_INDEX_CACHE_BYTESNoTotal size cap for the on-disk index cache.536870912
BAMCP_MAX_REMOTE_INDEX_BYTESNoMaximum remote BAM/CRAM index download size.67108864
BAMCP_ALLOW_DYNAMIC_REGISTRATIONNoAllow OAuth dynamic client registration.false
BAMCP_RATE_LIMIT_TRUSTED_PROXIESNoIPs/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

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources