SQL Server for MySQL, PostgreSQL, and SQLite

by vlaadislavkr

Not rated
GitHub

About

A server for making queries to MySQL, PostgreSQL, and SQLite databases.

Details

Author
vlaadislavkr
Categories
Database

Setup

Install SQL Server for MySQL, PostgreSQL, and SQLite in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/vlaadislavkr/mcp-sql-server

Follow the installation instructions in the repository README, then restart your MCP client.

SQL Server for MySQL, PostgreSQL, and SQLite

A server for making queries to MySQL, PostgreSQL, and SQLite databases.

SQL MCP Server for MySQL, PostgreSQL, and SQLite Databases

This is a powerfulMCP (Model Context Protocol) serverdesigned for seamless interaction with SQL databases, includingMySQL, PostgreSQL, and SQLite. It simplifieshow to connect to database MySQLand other SQL types, making it an ideal solution for developers looking for an efficientmcp mysql databaseintegration.

Whether you're building a new application or integrating with existing systems, this server provides the tools you need for managing your data.

Thismcp mysql tutorialwill guide you through its core functionalities.

- execute_sql_query- Execute SQL queries on a specified database. This tool is essential for running direct commands and is perfect for amcp mysql githubproject or any environment where direct SQL execution is needed.

- Parameters:

- dbType: Type of the database (mysql, postgresql or sqlite).
- connectionString: Connection string for the database (file path for sqlite).
- query: SQL query to execute.

- Parameters:

- dbType: Type of the database (mysql, postgresql or sqlite).
- connectionString: Connection string for the database (file path for sqlite).
- tableName: Name of the table to insert into.
- data: JSON object representing the data to insert (key-value pairs).

To use thismcp mysqlserver with your editor, you will generally need to configure it to recognize the server. The core principle involves providing the editor with the command to run the compiled server, typically located atbuild/index.js.

- MacOS:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "sql": { "command": "/path/to/sql/build/index.js" } } }

The exact configuration method may vary, but here are some common locations for configuration files:

- Roo Code:%APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\mcp_settings.json
- Cursor:%HOMEPATH%\.cursor(look for a relevant configuration file within this directory, e.g.,mcp_settings.jsonor similar). This setup allows seamlessmcp mysql cursorintegration.

Consult your editor's official documentation for detailed instructions on adding custom MCP servers.

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using theMCP Inspector, which is available as a package script:

The Inspector will provide a URL to access debugging tools in your browser.

- execute_sql_query- Execute SQL queries on a specified database.

- Parameters:

- dbType: Type of the database (mysql, postgresql or sqlite).
- connectionString: Connection string for the database (file path for sqlite).
- query: SQL query to execute.

- Parameters:

- dbType: Type of the database (mysql, postgresql or sqlite).
- connectionString: Connection string for the database (file path for sqlite).
- tableName: Name of the table to insert into.
- data: JSON object representing the data to insert (key-value pairs).

To use this MCP server with your editor, you will generally need to configure it to recognize the server. The core principle involves providing the editor with the command to run the compiled server, typically located atbuild/index.js.

- MacOS:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "sql": { "command": "/path/to/sql/build/index.js" } } }

The exact configuration method may vary, but here are some common locations for configuration files:

- Roo Code:%APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\mcp_settings.json
- Cursor:%HOMEPATH%\.cursor(look for a relevant configuration file within this directory, e.g.,mcp_settings.jsonor similar)

Consult your editor's official documentation for detailed instructions on adding custom MCP servers.

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using theMCP Inspector, which is available as a package script:

The Inspector will provide a URL to access debugging tools in your browser.

Official Airtable MCP server and skills for working with bases, records, workflows, and business operations from AI agents.

MCP Server For Apache Doris, an MPP-based real-time data warehouse.

Official MCP Server from Atlan which enables you to bring the power of metadata to your AI tools

Query Onchain data, like ERC20 tokens, transaction history, smart contract state.

Read and write access to your Baserow tables.

Introspect and query your apps deployed to Convex.

Interact with the data stored in Couchbase clusters using natural language.

Maritime intelligence for tracking vessels, analysing ports, and exploring ship data.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.