← MySQL MCP Server

MySQL MCP Server 0.4.4

pypi · mysql-mcp-server · current release

3
Tools
0
Resources
0
Templates
2
Prompts

Observation

Observed 2026-08-21T16:07:15.856Z using mcpSecurity-inventory. Status: partial. Negotiated protocol: 2025-06-18.

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

Tools 3

ToolCategoryAnnotationsRisk
execute_sqlExecute a SQL statement against the MySQL server. Use for SELECT, DML (INSERT/UPDATE/DELETE), SHOW, DESCRIBE, and ad-hoc queries. Supports cross-database queries using database.table notation. Single statements only — use fully qualified names instead of USE statements.
Input schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "The SQL statement to execute. Single statements only."
    }
  },
  "required": [
    "query"
  ]
}
Annotations
{
  "title": "Execute SQL",
  "readOnlyHint": false,
  "destructiveHint": true
}
Writes · Destructive
get_schema_infoGet column metadata for a table or all tables in the configured database: column names, data types, nullability, default values, and comments. Call this before querying an unfamiliar table. Omit table_name to see all tables at once. Accepts bare table names (uses MYSQL_DATABASE) or database.table for cross-database lookups.
Input schema
{
  "type": "object",
  "properties": {
    "table_name": {
      "type": "string",
      "description": "Optional: bare table name, or database.table for a cross-database lookup."
    }
  }
}
Annotations
{
  "title": "Get Schema Info",
  "readOnlyHint": true,
  "destructiveHint": false
}
Read only · Non-destructive
get_table_sampleFetch a small sample of rows from a table to understand its data format and content. Use alongside get_schema_info before writing complex queries. Accepts bare table names (uses MYSQL_DATABASE) or database.table for cross-database lookups.
Input schema
{
  "type": "object",
  "properties": {
    "table_name": {
      "type": "string",
      "description": "Table to sample. Use database.table notation for cross-database queries."
    },
    "limit": {
      "type": "integer",
      "description": "Number of rows to return (default 5, max 20)."
    }
  },
  "required": [
    "table_name"
  ]
}
Annotations
{
  "title": "Get Table Sample",
  "readOnlyHint": true,
  "destructiveHint": false
}
Read only · Non-destructive

Resources 0

Resource templates 0

Prompts 2

Let’s talk about MCP security.

Share your details and our security team will contact you.