Skip to main content
Glama
MCP Server Template

MCP Server Template

by hpartidas

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoInterface to bind. Optional; defaults to 127.0.0.1. The Dockerfile and docker-compose.yml set 0.0.0.0.127.0.0.1
PORTNoStandard HTTP port for the server to listen on.
NODE_ENVNoStandard Node.js environment name.
AUTH_ISSUERYesThe authorization server issuer. Must be https in production.
DATABASE_URLYesPooled runtime database connection used by the Prisma client.
AUTH_JWKS_URLYesThe authorization server JWKS URL. Must be https in production.
MCP_RESOURCE_URLYesThis server's canonical URL, used as the required token audience (RFC 8707).
UPSTREAM_API_KEYNoAPI key for the example upstream client. This is the upstream service's credential, never the caller's MCP token.
AUTH_TENANT_CLAIMNoOptional claim name carrying the caller's organization. When set, tokens without a valid value receive 403 not_linked.
DATABASE_POOL_MAXNoPer-instance database pool size. Optional in development/test (default 4); required in production.
MCP_ALLOWED_HOSTSYesComma-separated hostnames allowed on the Host header for /mcp. No wildcard.
UPSTREAM_BASE_URLNoBase URL for the example upstream client.
DIRECT_DATABASE_URLNoDirect database connection used for migrations only (prisma migrate).
MCP_ALLOWED_ORIGINSYesComma-separated hostnames allowed on the Origin header for /mcp. No wildcard.
UPSTREAM_TIMEOUT_MSNoTimeout in milliseconds for the example upstream client.
AUTH_REQUIRED_SCOPESNoOptional comma-separated endpoint-wide required scopes, on top of each tool's own scope. Each must be <domain>:read or <domain>:write.
MCP_REQUEST_STATE_KEYYesHMAC-SHA256 key for the MRTR requestState codec. Must be at least 32 bytes and shared across every replica.
AUTH_REQUIRE_AT_JWT_TYPNoControls the typ: at+jwt check, on by default. To accept an issuer that omits typ, set this to false together with AUTH_TYP_EXCEPTION_REASON and AUTH_TYP_EXCEPTION_ISSUER.true
AUTH_TYP_EXCEPTION_ISSUERNoIssuer allowed to omit typ. Must equal AUTH_ISSUER and is used with AUTH_REQUIRE_AT_JWT_TYP=false and AUTH_TYP_EXCEPTION_REASON.
AUTH_TYP_EXCEPTION_REASONNoReason of at least 20 characters for accepting an issuer that omits typ. Used with AUTH_REQUIRE_AT_JWT_TYP=false and AUTH_TYP_EXCEPTION_ISSUER.
MCP_MAX_REQUEST_BODY_BYTESNoUpper bound on a POST body. Optional; defaults to 4 MiB.
DATABASE_STATEMENT_TIMEOUT_MSNoPer-query database timeout in milliseconds. Optional in development/test (default 30000); required in production.

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