Skip to main content
Glama
PovilasKvedaras

TextToSQL MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LLM_MODELNoModel name for the LLM (default: gpt-oss:120b)gpt-oss:120b
SKILL_DIRNoWhere skills liveskills/
FIXTURE_DIRNoWhere fixtures livetests/
LLM_API_KEYNoAPI key for the LLM endpoint (default: ignored for local)
SCHEMA_NAMEYesSchema to introspect/query (required; SQLite: main)
DATABASE_URLYesAsync SQLAlchemy DSN (required)
LLM_BASE_URLNoBase URL for the LLM endpoint (default: http://localhost:11434/v1)http://localhost:11434/v1
INTROSPECTIONNotrue during Phases 1–2, false in productionfalse
MCP_HTTP_PORTNoHTTP port (default 8765)8765
DEV_DB_VERSIONNoBump to invalidate the harness result cache0
LANGFUSE_ENABLEDNoEnable Langfuse tracing (default: false)false
SAMPLE_ROW_LIMITNoSample rows per table in drafts100
EXPLAIN_HARD_COSTNoCost guard threshold to reject (PostgreSQL only)10000
EXPLAIN_WARN_COSTNoCost guard threshold to warn (PostgreSQL only)1000
LANGFUSE_BASE_URLNoLangfuse base URL
LLM_PROBE_TIMEOUTNoTimeout in seconds for probing the primary LLM endpoint (default: 2)2
LLM_FALLBACK_MODELNoFallback model (default: openrouter/auto)openrouter/auto
LANGFUSE_PUBLIC_KEYNoLangfuse public key
LANGFUSE_SECRET_KEYNoLangfuse secret key
LLM_FALLBACK_API_KEYNoFallback API key (required for fallback to work)
ALLOWED_QUERY_SCHEMASNoExtra schemas SELECTs may reference (empty = SCHEMA_NAME only)
LLM_FALLBACK_BASE_URLNoFallback LLM base URL (default: https://openrouter.ai/api/v1)https://openrouter.ai/api/v1
INTROSPECTION_TABLE_PREFIXESNoCSV of table-name prefixes to limit scope (empty = all)

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/PovilasKvedaras/TextToSQL'

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