Basic information
About Database Connections MCP Server
Database Connections offers a TypeScript-based server for seamless connections to SQLite, PostgreSQL, SQL Server, and MongoDB via server-sent events.
Database Connections is a MCP server in the Databases category listed in the AddMCP.net directory, published by cuongtl1992. Supported transport: stdio. Runtime: TypeScript. License: MIT. The repository has 21 GitHub stars. Source code is hosted on github.com. Related topics: community, databases.
Setup
{
"mcpServers": {
"mcp-dbs": {
"command": "npx",
"args": [
"-y",
"mcp-dbs",
"--stdio"
],
"env": {
"MCP_MONGODB_URI": "mongodb://localhost:27017",
"MCP_MONGODB_DATABASE": "your-database-name"
}
}
}
}
{
"mcpServers": {
"mcp-dbs": {
"command": "npx",
"args": [
"-y",
"mcp-dbs",
"--stdio"
],
"env": {
"MCP_MONGODB_URI": "mongodb://localhost:27017",
"MCP_MONGODB_DATABASE": "your-database-name"
}
}
}
}
{
"servers": {
"mcp-dbs": {
"command": "npx",
"args": [
"-y",
"mcp-dbs",
"--stdio"
],
"env": {
"MCP_MONGODB_URI": "mongodb://localhost:27017",
"MCP_MONGODB_DATABASE": "your-database-name"
}
}
}
}
Database Connections MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-dbs": {
"command": "npx",
"args": [
"-y",
"mcp-dbs",
"--stdio"
],
"env": {
"MCP_MONGODB_URI": "mongodb://localhost:27017",
"MCP_MONGODB_DATABASE": "your-database-name"
}
}
}
}
Database Connections MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Database Connections?
An MCP (Model Context Protocol) server for connecting to and working with SQLite, PostgreSQL, Microsoft SQL Server, and MongoDB databases. It allows AI assistants to interact with these databases through standardised tools and resources.
How to use Database Connections?
Install globally via npm install -g mcp-dbs or run directly with npx mcp-dbs. The server runs in SSE mode by default on port 3001; use --stdio for standard I/O mode. Configure database connections through environment variables or the connect-database tool.
Key features of Database Connections
- Connect to and disconnect from multiple database types
- Execute SQL or MongoDB queries that return results
- Execute updates (INSERT, UPDATE, DELETE) without results
- Retrieve full database or table schema
- List all tables in a connected database
Use cases of Database Connections
- Query databases conversationally through an AI assistant
- Explore and understand unfamiliar database schemas
- Perform data entry, updates, and deletions via natural language
- Integrate database access into Claude Desktop workflows
Frequently asked questions
1 What databases does MCP Database Server support?
It supports SQLite, PostgreSQL, Microsoft SQL Server, and MongoDB.
2 How do I install MCP Database Server?
Install it globally with npm install -g mcp-dbs, or use it directly with npx mcp-dbs.
3 What transport modes are available?
Two modes: SSE (Server-Sent Events) on port 3001 by default, and STDIO mode via the --stdio flag.
4 How do I configure a database connection?
Set environment variables (e.g., MCP_POSTGRES_HOST, MCP_MONGODB_URI) before starting the server, or use the connect-database tool with a connection ID and database type.
5 Can I use MCP Database Server with Claude Desktop?
Yes. Add an entry to Claude's mcpServers configuration using the node command, the path to the server’s CLI file, the --stdio flag, and the required environment variables for your database.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In