Rank
83
A Model Context Protocol (MCP) server for GitLab
Traction
No public download signal
Freshness
Updated 2d ago
Crawler Summary
MCP server for MySQL database interactions MySQL MCP Server A Model Context Protocol (MCP) server for MySQL database interactions. This server allows LLMs to understand database schemas and execute safe SQL queries with built-in security features and scalability support. ๐ **Quick Start**: New to this project? Check out our $1 for the fastest way to get up and running! Features - **Schema Analysis**: Comprehensive database schema exploration including tables Published capability contract available. No trust telemetry is available yet. Last updated 2/24/2026.
Freshness
Last checked 2/22/2026
Best For
Contract is available with explicit auth and schema references.
Not Ideal For
@ahmedmustafamalik/mysql-mcp is not ideal for teams that need stronger public trust telemetry, lower setup complexity, or more explicit contract coverage before production rollout.
Evidence Sources Checked
editorial-content, capability-contract, runtime-metrics, public facts pack
MCP server for MySQL database interactions MySQL MCP Server A Model Context Protocol (MCP) server for MySQL database interactions. This server allows LLMs to understand database schemas and execute safe SQL queries with built-in security features and scalability support. ๐ **Quick Start**: New to this project? Check out our $1 for the fastest way to get up and running! Features - **Schema Analysis**: Comprehensive database schema exploration including tables
Public facts
6
Change events
1
Artifacts
0
Freshness
Feb 22, 2026
Published capability contract available. No trust telemetry is available yet. Last updated 2/24/2026.
Trust score
Unknown
Compatibility
MCP
Freshness
Feb 22, 2026
Vendor
Ahmustufa
Artifacts
0
Benchmarks
0
Last release
1.2.3
Key links, install path, and a quick operational read before the deeper crawl record.
Summary
Published capability contract available. No trust telemetry is available yet. Last updated 2/24/2026.
Setup snapshot
git clone https://github.com/Ahmustufa/mysql-mcp.gitSetup complexity is MEDIUM. Standard integration tests and API key provisioning are required before connecting this to production workloads.
Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Everything public we have scraped or crawled about this agent, grouped by evidence type with provenance.
Vendor
Ahmustufa
Protocol compatibility
MCP
Auth modes
mcp, api_key
Machine-readable schemas
OpenAPI or schema references published
Handshake status
UNKNOWN
Crawlable docs
6 indexed pages on the official domain
Merged public release, docs, artifact, benchmark, pricing, and trust refresh events.
Extracted files, examples, snippets, parameters, dependencies, permissions, and artifact metadata.
Extracted files
0
Examples
6
Snippets
0
Languages
typescript
bash
# Clone the repository git clone https://github.com/Ahmustufa/mysql-mcp.git cd mysql-mcp # Install dependencies npm install # Install development dependencies (if not automatically installed) npm install --save-dev tsx @types/node
bash
# Build the Docker image docker build -t mysql-mcp . # Or pull from registry (if published) docker pull ahmustufa/mysql-mcp:latest
bash
# Required Database Configuration DB_SERVER=localhost DB_DATABASE=your_database_name DB_USER=your_username DB_PASSWORD=your_password # Optional Configuration DB_PORT=3306 DB_SSL=false # Set to 'false' to disable SSL, or leave undefined for AWS RDS SSL # For AWS RDS MySQL # DB_SERVER=your-rds-endpoint.region.rds.amazonaws.com # DB_SSL=Amazon RDS # Enables SSL for RDS
bash
# Docker with environment variables
docker run -e DB_SERVER=localhost \
-e DB_DATABASE=mydb \
-e DB_USER=user \
-e DB_PASSWORD=password \
mysql-mcp
# Docker with .env file
docker run --env-file .env mysql-mcpbash
npm run dev
bash
npm run build npm start
Full documentation captured from public sources, including the complete README when available.
Docs source
GITHUB MCP
Editorial quality
ready
MCP server for MySQL database interactions MySQL MCP Server A Model Context Protocol (MCP) server for MySQL database interactions. This server allows LLMs to understand database schemas and execute safe SQL queries with built-in security features and scalability support. ๐ **Quick Start**: New to this project? Check out our $1 for the fastest way to get up and running! Features - **Schema Analysis**: Comprehensive database schema exploration including tables
A Model Context Protocol (MCP) server for MySQL database interactions. This server allows LLMs to understand database schemas and execute safe SQL queries with built-in security features and scalability support.
๐ Quick Start: New to this project? Check out our Getting Started Guide for the fastest way to get up and running!
# Clone the repository
git clone https://github.com/Ahmustufa/mysql-mcp.git
cd mysql-mcp
# Install dependencies
npm install
# Install development dependencies (if not automatically installed)
npm install --save-dev tsx @types/node
# Build the Docker image
docker build -t mysql-mcp .
# Or pull from registry (if published)
docker pull ahmustufa/mysql-mcp:latest
Create a .env file in the project root:
# Required Database Configuration
DB_SERVER=localhost
DB_DATABASE=your_database_name
DB_USER=your_username
DB_PASSWORD=your_password
# Optional Configuration
DB_PORT=3306
DB_SSL=false # Set to 'false' to disable SSL, or leave undefined for AWS RDS SSL
# For AWS RDS MySQL
# DB_SERVER=your-rds-endpoint.region.rds.amazonaws.com
# DB_SSL=Amazon RDS # Enables SSL for RDS
For Docker deployments, you can use environment variables or a .env file:
# Docker with environment variables
docker run -e DB_SERVER=localhost \
-e DB_DATABASE=mydb \
-e DB_USER=user \
-e DB_PASSWORD=password \
mysql-mcp
# Docker with .env file
docker run --env-file .env mysql-mcp
npm run dev
npm run build
npm start
# Basic Docker run
docker run --env-file .env mysql-mcp
# Docker with port mapping (if extending with HTTP endpoints)
docker run -p 3000:3000 --env-file .env mysql-mcp
# Docker Compose (see docker-compose.yml section below)
docker-compose up -d
Execute SQL queries with built-in safety validation.
Parameters:
query (string): SQL query to executeSafety Features:
Example:
{
"query": "SELECT * FROM users WHERE id = 1"
}
List all base tables in the current database.
Parameters: None
Returns: Array of table information including schema, name, and type.
Example Usage:
{
"tool": "list_tables"
}
Get detailed schema information for a specific table.
Parameters:
table_name (string): Name of the table to describeReturns: Column information including data types, nullability, defaults, and constraints.
Example:
{
"table_name": "users"
}
Retrieve sample data from a table.
Parameters:
table_name (string): Name of the tablelimit (number, optional): Number of rows to return (1-100, default: 10)Example:
{
"table_name": "users",
"limit": 5
}
Get primary key column(s) for a specific table.
Parameters:
table_name (string): Name of the tableReturns: List of primary key columns for the specified table.
Example:
{
"table_name": "users"
}
Find columns whose names match a pattern (case-insensitive).
Parameters:
like (string): Pattern to search for in column namesReturns: List of matching columns across all tables with their data types.
Example:
{
"like": "email"
}
List foreign key relationships for a table.
Parameters:
table_name (string): Name of the tableReturns: Foreign key relationships both referencing and referenced by the table.
Example:
{
"table_name": "posts"
}
Get a complete schema overview of the database.
Parameters: None
Returns: Comprehensive JSON map of all tables with their columns, primary keys, and foreign key relationships.
Example:
{
"tool": "introspect_schema"
}
# Build the image
docker build -t mysql-mcp .
# Run with environment variables
docker run --rm \
-e DB_SERVER=your-mysql-server \
-e DB_DATABASE=your_database \
-e DB_USER=your_user \
-e DB_PASSWORD=your_password \
mysql-mcp
# Run with .env file
docker run --rm --env-file .env mysql-mcp
# Run with volume mount for configuration
docker run --rm \
-v $(pwd)/.env:/app/.env \
mysql-mcp
Create a docker-compose.yml file:
version: "3.8"
services:
mysql-mcp:
build: .
environment:
- DB_SERVER=mysql
- DB_DATABASE=testdb
- DB_USER=root
- DB_PASSWORD=rootpassword
- DB_PORT=3306
depends_on:
- mysql
restart: unless-stopped
mysql:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_DATABASE=testdb
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
restart: unless-stopped
volumes:
mysql_data:
Run with Docker Compose:
# Start services
docker-compose up -d
# View logs
docker-compose logs -f mysql-mcp
# Stop services
docker-compose down
# Stop and remove volumes
docker-compose down -v
For high-availability deployments:
version: "3.8"
services:
mysql-mcp:
build: .
deploy:
replicas: 3
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
environment:
- DB_SERVER=mysql-primary
- DB_DATABASE=proddb
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
depends_on:
- mysql-primary
mysql-primary:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=proddb
volumes:
- mysql_primary_data:/var/lib/mysql
deploy:
placement:
constraints: [node.role == manager]
volumes:
mysql_primary_data:
The server includes comprehensive error handling:
The server provides detailed schema information including:
| Variable | Description | Default | Required |
| ------------- | --------------------------- | ------------ | -------- |
| DB_SERVER | MySQL server hostname or IP | - | โ
|
| DB_DATABASE | Database name | - | โ
|
| DB_USER | Database username | - | โ
|
| DB_PASSWORD | Database password | - | โ
|
| DB_PORT | Database port | 3306 | โ |
| DB_SSL | SSL configuration | 'Amazon RDS' | โ |
DB_SSL=false to disable SSL completely'Amazon RDS' for AWS RDS SSL supportThis MCP server is optimized for AWS RDS MySQL instances:
# AWS RDS Configuration
DB_SERVER=your-rds-instance.region.rds.amazonaws.com
DB_DATABASE=your_database
DB_USER=admin
DB_PASSWORD=your_secure_password
DB_PORT=3306
# DB_SSL is automatically set to 'Amazon RDS' for SSL
Ensure your RDS security group allows connections from your application:
The server uses MySQL2's built-in connection pooling:
max_connections# Multi-stage build for smaller production images
FROM node:22.20-alpine as builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
FROM node:22.20-alpine as production
WORKDIR /app
COPY --from=builder /app/node_modules ./node_modules
COPY build ./build
CMD ["node", "build/index.js"]
mysql-mcp/
โโโ src/
โ โโโ index.ts # Main entry point with MCP server implementation
โโโ build/ # Compiled TypeScript output
โโโ .env # Environment configuration
โโโ .dockerignore # Docker ignore file
โโโ Dockerfile # Docker container configuration
โโโ docker-compose.yml # Docker Compose setup (create this)
โโโ package.json # Node.js dependencies and scripts
โโโ tsconfig.json # TypeScript configuration
โโโ README.md # This documentation
# Install dependencies
npm install
# Start development server with hot reload
npm run dev
# Build for production
npm run build
# Start production server
npm start
# Watch for changes (compile only)
npm run watch
# Clean build directory
npm run clean
To add new MCP tools, register them in src/index.ts:
server.registerTool(
"your_tool_name",
{
title: "Your Tool Title",
description: "Description of what your tool does",
inputSchema: {
parameter: z.string().min(1),
},
},
async ({ parameter }) => {
// Your tool implementation
const result = await performSomeOperation(parameter);
return {
content: [
{
type: "text",
text: JSON.stringify(result, null, 2),
},
],
};
}
);
The server includes comprehensive error handling:
Connection Refused
Error: connect ECONNREFUSED
Authentication Failed
Error: Access denied for user
Database Not Found
Error: Unknown database
SSL Connection Issues
Error: SSL connection error
DB_SSL=falseEnable detailed logging by setting NODE_ENV:
NODE_ENV=development npm run dev
# Add testing framework
npm install --save-dev jest @types/jest
# Run tests
npm test
# Test with actual database
npm run test:integration
# Test connection pooling and performance
npm run test:load
We welcome contributions! Please follow these guidelines:
git checkout -b feature/your-feature-nameApache License 2.0 - see LICENSE file for details.
For issues and questions:
Machine endpoints, protocol fit, contract coverage, invocation examples, and guardrails for agent-to-agent use.
Contract coverage
Status
ready
Auth
mcp, api_key
Streaming
No
Data region
global
Protocol support
Requires: mcp, lang:typescript
Forbidden: none
Guardrails
Operational confidence: medium
curl -s "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/snapshot"
curl -s "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/contract"
curl -s "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/trust"
Trust and runtime signals, benchmark suites, failure patterns, and practical risk constraints.
Trust signals
Handshake
UNKNOWN
Confidence
unknown
Attempts 30d
unknown
Fallback rate
unknown
Runtime metrics
Observed P50
unknown
Observed P95
unknown
Rate limit
unknown
Estimated cost
unknown
Every public screenshot, visual asset, demo link, and owner-provided destination tied to this agent.
Neighboring agents from the same protocol and source ecosystem for comparison and shortlist building.
Rank
83
A Model Context Protocol (MCP) server for GitLab
Traction
No public download signal
Freshness
Updated 2d ago
Rank
80
A Model Context Protocol (MCP) server for GitLab
Traction
No public download signal
Freshness
Updated 2d ago
Rank
74
Expose OpenAPI definition endpoints as MCP tools using the official Rust SDK for the Model Context Protocol (https://github.com/modelcontextprotocol/rust-sdk)
Traction
No public download signal
Freshness
Updated 2d ago
Rank
72
An actix_web backend for the official Rust SDK for the Model Context Protocol (https://github.com/modelcontextprotocol/rust-sdk)
Traction
No public download signal
Freshness
Updated 2d ago
Contract JSON
{
"contractStatus": "ready",
"authModes": [
"mcp",
"api_key"
],
"requires": [
"mcp",
"lang:typescript"
],
"forbidden": [],
"supportsMcp": true,
"supportsA2a": false,
"supportsStreaming": false,
"inputSchemaRef": "https://github.com/Ahmustufa/mysql-mcp#input",
"outputSchemaRef": "https://github.com/Ahmustufa/mysql-mcp#output",
"dataRegion": "global",
"contractUpdatedAt": "2026-02-24T19:45:40.775Z",
"sourceUpdatedAt": "2026-02-24T19:45:40.775Z",
"freshnessSeconds": 4440629
}Invocation Guide
{
"preferredApi": {
"snapshotUrl": "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/snapshot",
"contractUrl": "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/contract",
"trustUrl": "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/trust"
},
"curlExamples": [
"curl -s \"https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/snapshot\"",
"curl -s \"https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/contract\"",
"curl -s \"https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/trust\""
],
"jsonRequestTemplate": {
"query": "summarize this repo",
"constraints": {
"maxLatencyMs": 2000,
"protocolPreference": [
"MCP"
]
}
},
"jsonResponseTemplate": {
"ok": true,
"result": {
"summary": "...",
"confidence": 0.9
},
"meta": {
"source": "GITHUB_MCP",
"generatedAt": "2026-04-17T05:16:10.492Z"
}
},
"retryPolicy": {
"maxAttempts": 3,
"backoffMs": [
500,
1500,
3500
],
"retryableConditions": [
"HTTP_429",
"HTTP_503",
"NETWORK_TIMEOUT"
]
}
}Trust JSON
{
"status": "unavailable",
"handshakeStatus": "UNKNOWN",
"verificationFreshnessHours": null,
"reputationScore": null,
"p95LatencyMs": null,
"successRate30d": null,
"fallbackRate": null,
"attempts30d": null,
"trustUpdatedAt": null,
"trustConfidence": "unknown",
"sourceUpdatedAt": null,
"freshnessSeconds": null
}Capability Matrix
{
"rows": [
{
"key": "MCP",
"type": "protocol",
"support": "supported",
"confidenceSource": "contract",
"notes": "Confirmed by capability contract"
},
{
"key": "mcp",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
},
{
"key": "mysql",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
},
{
"key": "database",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
},
{
"key": "llm",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
},
{
"key": "cli",
"type": "capability",
"support": "supported",
"confidenceSource": "profile",
"notes": "Declared in agent profile metadata"
}
],
"flattenedTokens": "protocol:MCP|supported|contract capability:mcp|supported|profile capability:mysql|supported|profile capability:database|supported|profile capability:llm|supported|profile capability:cli|supported|profile"
}Facts JSON
[
{
"factKey": "docs_crawl",
"category": "integration",
"label": "Crawlable docs",
"value": "6 indexed pages on the official domain",
"href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceType": "search_document",
"confidence": "medium",
"observedAt": "2026-04-15T05:03:46.393Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "MCP",
"href": "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/contract",
"sourceUrl": "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/contract",
"sourceType": "contract",
"confidence": "high",
"observedAt": "2026-02-24T19:45:40.775Z",
"isPublic": true
},
{
"factKey": "auth_modes",
"category": "compatibility",
"label": "Auth modes",
"value": "mcp, api_key",
"href": "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/contract",
"sourceUrl": "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/contract",
"sourceType": "contract",
"confidence": "high",
"observedAt": "2026-02-24T19:45:40.775Z",
"isPublic": true
},
{
"factKey": "schema_refs",
"category": "artifact",
"label": "Machine-readable schemas",
"value": "OpenAPI or schema references published",
"href": "https://github.com/Ahmustufa/mysql-mcp#input",
"sourceUrl": "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/contract",
"sourceType": "contract",
"confidence": "high",
"observedAt": "2026-02-24T19:45:40.775Z",
"isPublic": true
},
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Ahmustufa",
"href": "https://github.com/Ahmustufa/mysql-mcp",
"sourceUrl": "https://github.com/Ahmustufa/mysql-mcp",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-02-24T19:43:14.176Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/trust",
"sourceUrl": "https://xpersona.co/api/v1/agents/mcp-ahmustufa-mysql-mcp/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
]Change Events JSON
[
{
"eventType": "docs_update",
"title": "Docs refreshed: Sign in to GitHub ยท GitHub",
"description": "Fresh crawlable documentation was indexed for the official domain.",
"href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
"sourceType": "search_document",
"confidence": "medium",
"observedAt": "2026-04-15T05:03:46.393Z",
"isPublic": true
}
]Sponsored
Ads related to @ahmedmustafamalik/mysql-mcp and adjacent AI workflows.