Skip to main content
Glama
riefer02

mysql-db-reader

by riefer02

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP server port (default 3002)
MYSQL_URLNoMySQL connection URL, e.g. mysql://user:password@localhost:3306/mydb
DATABASE_URLNoGeneric database URL (also accepted for MySQL)
MYSQL_CONNECTION_STRINGNoAlternative MySQL connection string

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
mysql_explain_queryA

Run EXPLAIN on a SELECT query to show the query execution plan. Use this to analyze query performance and identify missing indexes.

mysql_get_table_schemaA

Get table column definitions, primary key, indexes, and constraints. Use this to understand table structure before writing queries.

mysql_list_databasesA

List available databases (schemas) on the MySQL server. Use this first to discover what databases exist before querying tables.

mysql_list_tablesA

List tables (and optionally views) in a database. Use this after mysql_list_databases to discover available tables before querying or inspecting schema.

mysql_preview_tableA

Preview first N rows from a table with optional ordering. Use this to quickly inspect sample data without writing SQL.

mysql_queryA

Run a read-only SQL query with optional positional parameters. For complex queries or when you need JOINs, aggregations, or filtering. Results are limited to 10,000 rows; use LIMIT for large tables.

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/riefer02/mysql-db-reader'

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