Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables monitoring and administration of MySQL databases through natural language, supporting multiple simultaneous connections, health checks, and full DDL/DML/DCL operations.

README.md

🚀 MySQL Node MCP Server

![npm version](https://badge.fury.io/js/mysql-mcp-server-v1) ![Downloads](https://www.npmjs.com/package/mysql-mcp-server-v1) ![GitHub stars](https://github.com/lrferr/mysql-mcp-server/stargazers) ![License: MIT](https://opensource.org/licenses/MIT)

Um servidor MCP (Model Context Protocol) para monitoramento e interação com MySQL Database, desenvolvido em Node.js com suporte a múltiplas conexões simultâneas.

✨ Funcionalidades Principais

  • 🔗 Múltiplas Conexões - Conecte-se a vários bancos MySQL simultaneamente
  • 📊 Monitoramento - Saúde do banco, performance e métricas em tempo real
  • 🛡️ Segurança - Validação de scripts de migração e operações seguras
  • ⚡ Performance - Pool de conexões otimizado para cada ambiente
  • 🔧 Administração - DDL, DML e DCL operations completas
  • 📱 Integração - Compatível com Cursor IDE e Claude Desktop

🚀 Início Rápido

1. Instalação

npm install -g mysql-mcp-server-v1

2. Configuração MCP (Cursor/Claude Desktop)

Adicione a seguinte configuração ao seu arquivo mcp.json:

{
  "mcpServers": {
    "mysql-monitor": {
      "command": "npx",
      "args": ["mysql-mcp-server-v1@latest"],
      "env": {
        "MCP_SERVER_NAME": "mysql-monitor",
        "MCP_SERVER_VERSION": "1.0.0",
        "LOG_LEVEL": "info",
        "MYSQL_CONNECTIONS": "{\"connections\":{\"prod\":{\"host\":\"localhost\",\"port\":3306,\"user\":\"seu_usuario\",\"password\":\"sua_senha\",\"database\":\"seu_banco\",\"description\":\"Production Database\"}},\"defaultConnection\":\"prod\"}"
      }
    }
  }
}

Para múltiplas conexões: ``json { "mcpServers": { "mysql-monitor": { "command": "npx", "args": ["mysql-mcp-server-v1@latest"], "env": { "MCP_SERVER_NAME": "mysql-monitor", "MCP_SERVER_VERSION": "1.0.0", "LOG_LEVEL": "info", "MYSQL_CONNECTIONS": "{\"connections\":{\"hml\":{\"host\":\"servidor_hml\",\"port\":3306,\"user\":\"usuario_hml\",\"password\":\"senha_hml\",\"database\":\"hml_db\",\"description\":\"Homologação Database\"},\"prod\":{\"host\":\"servidor_prod\",\"port\":3306,\"user\":\"usuario_prod\",\"password\":\"senha_prod\",\"database\":\"prod_db\",\"description\":\"Production Database\"}},\"defaultConnection\":\"prod\"}" } } } } ``

3. Configuração Automática (Opcional)

# Configurar Cursor IDE automaticamente
npx mysql-mcp-server-v1 setup-cursor

# Diagnosticar problemas de conectividade
npx mysql-mcp-server-v1 diagnose

# Testar conexão MySQL
npx mysql-mcp-server-v1 test-connection

🛠️ Ferramentas Disponíveis

🔗 Múltiplas Conexões

  • list_connections - Lista todas as conexões
  • test_connection - Testa conexão específica
  • test_all_connections - Testa todas as conexões
  • get_connections_status - Status das conexões ativas

📊 Monitoramento

  • check_database_health - Verifica saúde do banco
  • monitor_schema_changes - Monitora mudanças em esquemas
  • check_sensitive_tables - Verifica tabelas sensíveis
  • detect_suspicious_activity - Detecta atividades suspeitas

🔧 Administração

  • DDL: create_table, alter_table, drop_table
  • DML: select_data, insert_data, update_data, delete_data
  • DCL: create_user, grant_privileges, revoke_privileges

🔍 Análise

  • get_table_info - Informações detalhadas da tabela
  • get_constraints - Lista constraints
  • get_foreign_keys - Lista chaves estrangeiras
  • get_indexes - Lista índices
  • analyze_table - Analisa tabela e gera estatísticas

📋 Pré-requisitos

  • Node.js 18.0.0 ou superior
  • MySQL 5.7 ou superior / MariaDB 10.3 ou superior
  • Acesso ao banco com privilégios adequados

🤝 Contribuição

Contribuições são bem-vindas! Consulte o arquivo CONTRIBUTING.md para mais detalhes.

📄 Licença

Este projeto está licenciado sob a Licença MIT - veja o arquivo LICENSE para detalhes.

🆘 Suporte

Para suporte e dúvidas:

  1. Consulte a documentação completa
  2. Abra uma issue no GitHub
  3. Verifique os logs para erros específicos

---

Desenvolvido com ❤️ por Leandro Ferreira

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Databases servers.