Skip to main content
Glama

IBM i MCP Server

Official
by IBM
.env.exampleโ€ข4.08 kB
# ----------------------------------------------------------------- # MCP Server Configuration # ----------------------------------------------------------------- # Transport type: "stdio" or "http" MCP_TRANSPORT_TYPE=http # Session mode: "stateless", "stateful", or "auto" (only used if MCP_TRANSPORT_TYPE=http) MCP_SESSION_MODE=auto # Log level: "debug", "info", "warning", "error", "crit", "alert", "emerg" MCP_LOG_LEVEL=debug # Directory for log files LOGS_DIR=logs/ # SQL Yaml configuration file path TOOLS_YAML_PATH=prebuiltconfigs YAML_MERGE_ARRAYS=true # Enable automatic reloading of YAML tools when configuration files change YAML_AUTO_RELOAD=true # ----------------------------------------------------------------- # Database Configuration # ----------------------------------------------------------------- # IBM i DB2 for i Connection Settings # Required for YAML SQL tools to connect to IBM i systems DB2i_HOST= DB2i_USER= DB2i_PASS= DB2i_PORT=8076 DB2i_IGNORE_UNAUTHORIZED=true # ----------------------------------------------------------------- # HTTP Transport Configuration (only used if MCP_TRANSPORT_TYPE=http) # ----------------------------------------------------------------- MCP_HTTP_HOST=127.0.0.1 MCP_HTTP_PORT=3010 # Comma-separated list of allowed origins for CORS MCP_ALLOWED_ORIGINS=http://localhost:8080 # ----------------------------------------------------------------- # Authentication Configuration # ----------------------------------------------------------------- # Authentication mode: "jwt", "oauth", "ibmi", or "none" MCP_AUTH_MODE=none # Secret key for signing JWTs (must be at least 32 characters long) # IMPORTANT: This is required for JWT and OAuth2 authentication modes MCP_AUTH_SECRET_KEY=your-super-secret-key-that-is-at-least-32-characters-long # IBM i HTTP auth key configuration IBMI_AUTH_KEY_ID=development IBMI_AUTH_PRIVATE_KEY_PATH=secrets/private.pem IBMI_AUTH_PUBLIC_KEY_PATH=secrets/public.pem # ----------------------------------------------------------------- # IBM i HTTP Authentication Configuration # ----------------------------------------------------------------- # Enable IBM i HTTP authentication endpoints (requires MCP_AUTH_MODE=ibmi) IBMI_HTTP_AUTH_ENABLED=false # Allow HTTP requests for authentication (development only, use HTTPS in production) IBMI_AUTH_ALLOW_HTTP=false # Default token lifetime in seconds (3600 = 1 hour) IBMI_AUTH_TOKEN_EXPIRY_SECONDS=3600 # How often to clean expired tokens in seconds (300 = 5 minutes) IBMI_AUTH_CLEANUP_INTERVAL_SECONDS=300 # Maximum number of concurrent authenticated sessions IBMI_AUTH_MAX_CONCURRENT_SESSIONS=100 # ----------------------------------------------------------------- # IBM i HTTP Authentication Configuration # ----------------------------------------------------------------- # Enable IBM i HTTP authentication endpoints (requires MCP_AUTH_MODE=ibmi) IBMI_HTTP_AUTH_ENABLED=false # Allow HTTP requests for authentication (development only, use HTTPS in production) IBMI_AUTH_ALLOW_HTTP=false # Default token lifetime in seconds (3600 = 1 hour) IBMI_AUTH_TOKEN_EXPIRY_SECONDS=3600 # How often to clean expired tokens in seconds (300 = 5 minutes) IBMI_AUTH_CLEANUP_INTERVAL_SECONDS=300 # Maximum number of concurrent authenticated sessions IBMI_AUTH_MAX_CONCURRENT_SESSIONS=100 # ----------------------------------------------------------------- # Database Configuration # ----------------------------------------------------------------- # # Supabase Project URL # SUPABASE_URL= # # Supabase Anonymous Key (public, safe for client-side use) # SUPABASE_ANON_KEY= # # Supabase Service Role Key (private, for server-side admin tasks) # SUPABASE_SERVICE_ROLE_KEY= # ----------------------------------------------------------------- # LLM Provider Configuration (Optional) # ----------------------------------------------------------------- # API key for OpenRouter OPENROUTER_API_KEY= # Default LLM model to use LLM_DEFAULT_MODEL="google/gemini-2.5-flash" # Default temperature for LLM responses LLM_DEFAULT_TEMPERATURE=0.4

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/IBM/ibmi-mcp-server'

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