Skip to main content
Glama
xingyuli

just-a-mysql-mcp

by xingyuli

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_DBNoAlias for MYSQL_DATABASE.
MYSQL_HOSTNoMySQL host.127.0.0.1
MYSQL_PASSNoAlias for MYSQL_PASSWORD.
MYSQL_PORTNoMySQL port.3306
MYSQL_USERNoMySQL username.
MYSQL_DATABASENoMySQL database name. Alias: MYSQL_DB
MYSQL_PASSWORDNoMySQL password. Alias: MYSQL_PASS

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_tablesA

List tables in the bound database. Returns table names only (schema browsing — no row data).

describe_tableA
Describe columns for one table in the bound database.

Args:
    table: Unquoted table name (letters, digits, underscore)
mysql_queryA
Run one read-only SQL statement against the bound database.

Allowed: SELECT (including WITH…SELECT), SHOW, DESCRIBE/DESC, EXPLAIN.
Results are capped (default 100 rows, max 1000); truncation is explicit.

Args:
    sql: A single read-only SQL statement
    limit: Max rows to return (default 100, max 1000)

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/xingyuli/just-a-mysql-mcp'

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