Skip to main content
Glama
amararun

FastAPI Database MCP Server

by amararun

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging levelINFO
RATE_LIMITNoPer-IP rate limit (SlowAPI format, e.g. 60/hour, 100/minute)30/minute
DUCKDB_FILENoPath to .duckdb file./data/t20_cricket.duckdb
PG_POOL_MAXNoPostgres connection pool maximum size6
PG_POOL_MINNoPostgres connection pool minimum size3
AUTH0_DOMAINNoAuth0 tenant domain (enables /mcp-secure when set)
MAX_TSV_ROWSNoMax rows returned in TSV format1000
AUTH_FAIL_MAXNoMax failed auth attempts per IP before blocking5
MAX_JSON_ROWSNoMax rows returned in JSON format1000
AUTH0_AUDIENCENoAuth0 API identifier
DUCKDB_THREADSNoDuckDB thread limit2
API_MONITOR_KEYNotigzig-api-monitor API key
API_MONITOR_URLNotigzig-api-monitor endpoint URL
AUTH0_CLIENT_IDNoAuth0 application client ID
DUCKDB_TEMP_DIRNoDuckDB temporary directory/tmp/duckdb
AUTH_FAIL_WINDOWNoFailed auth tracking window in seconds (default: 24 hours)86400
GLOBAL_RATE_LIMITNoGlobal rate limit across all IPs200/minute
SUPABASE_POSTGRESYesPostgres connection string (use a read-only user)
CORS_ALLOW_ORIGINSNoComma-separated allowed origins*
MAX_RESPONSE_BYTESNoMax response size in bytes (default: 1MB)1048576
AUTH0_CLIENT_SECRETNoAuth0 application client secret
DUCKDB_MEMORY_LIMITNoDuckDB memory limit512MB
RENDER_EXTERNAL_URLNoBase URL for MCP (auto-detected on Render)
MAX_CONCURRENT_GLOBALNoMax simultaneous queries server-wide10
MAX_CONCURRENT_PER_IPNoMax simultaneous queries per IP4
DUCKDB_QUERY_TIMEOUT_MSNoDuckDB query timeout in milliseconds15000
PG_POOL_ACQUIRE_TIMEOUTNoSeconds to wait for a pool connection before returning 50315
PG_STATEMENT_TIMEOUT_MSNoPostgres query timeout in milliseconds15000
DUCKDB_MAX_TEMP_DIR_SIZENoDuckDB temp directory size cap2GB

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

Latest Blog Posts

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/amararun/shared-fastapi-database-mcp'

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