Skip to main content
Glama

PubMed MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOGS_DIRNoDirectory for log files.logs/
NODE_ENVNoRuntime environment (development, production).development
NCBI_API_KEYNoOptional, but highly recommended. Your NCBI API Key for higher rate limits (10/sec vs 3/sec).
MCP_HTTP_HOSTNoHost address for the HTTP server (if MCP_TRANSPORT_TYPE=http).127.0.0.1
MCP_HTTP_PORTNoPort for the HTTP server (if MCP_TRANSPORT_TYPE=http).3010
MCP_LOG_LEVELNoServer logging level (debug, info, warning, error, etc.).debug
NCBI_ADMIN_EMAILNoOptional, but recommended if using an API key. Your email for NCBI contact.
NCBI_MAX_RETRIESNoMaximum number of retries for failed NCBI requests.3
MCP_TRANSPORT_TYPENoServer transport: stdio or http.stdio
MCP_ALLOWED_ORIGINSNoComma-separated allowed origins for CORS (if MCP_TRANSPORT_TYPE=http).
MCP_AUTH_SECRET_KEYNoRequired for HTTP transport. Secret key (min 32 chars) for signing/verifying auth tokens (JWT).
NCBI_TOOL_IDENTIFIERNoOptional. Tool identifier sent to NCBI.
NCBI_REQUEST_DELAY_MSNoMilliseconds to wait between NCBI requests. Dynamically set (e.g., 100ms with API key, 334ms without).

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyanheads/pubmed-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server