Provides tools to interact with SQLite databases, including capabilities for executing read and write queries, managing table schemas, and exporting query results as CSV or JSON.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Database Serverfind the top 5 customers with the most orders"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Database Server
This MCP (Model Context Protocol) server provides database access capabilities to Claude, supporting both SQLite and SQL Server databases.
Installation
Clone the repository:
Install dependencies:
Build the project:
Usage Options
There are two ways to use this MCP server with Claude:
Direct usage: Install the package globally and use it directly
Local development: Run from your local development environment
Direct Usage with NPM Package
The easiest way to use this MCP server is by installing it globally:
This allows you to use the server directly without building it locally.
Local Development Setup
If you want to modify the code or run from your local environment:
Clone and build the repository as shown in the Installation section
Run the server using the commands in the Usage section below
Usage
SQLite Database
To use with an SQLite database:
SQL Server Database
To use with a SQL Server database:
Required parameters:
--server: SQL Server host name or IP address--database: Name of the database
Optional parameters:
--user: Username for SQL Server authentication (if not provided, Windows Authentication will be used)--password: Password for SQL Server authentication--port: Port number (default: 1433)
Configuring Claude Desktop
Direct Usage Configuration
If you installed the package globally, configure Claude Desktop with:
Local Development Configuration
For local development, configure Claude Desktop to use your locally built version:
The Claude Desktop configuration file is typically located at:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Available Database Tools
The MCP Database Server provides the following tools that Claude can use:
Tool | Description | Required Parameters |
| Execute SELECT queries to read data |
|
| Execute INSERT, UPDATE, or DELETE queries |
|
| Create new tables in the database |
|
| Modify existing table schema |
|
| Remove a table from the database |
|
| Get a list of all tables | None |
| View schema information for a table |
|
| Export query results as CSV/JSON |
|
| Add a business insight to memo |
|
| List all business insights | None |
For practical examples of how to use these tools with Claude, see Usage Examples.
Additional Documentation
SQL Server Setup Guide: Details on connecting to SQL Server databases
Usage Examples: Example queries and commands to use with Claude
Development
To run the server in development mode:
To watch for changes during development:
Requirements
Node.js 18+
For SQL Server connectivity: SQL Server 2012 or later
License
MIT