AdoMcp
Enables connection to MariaDB databases, providing tools to list database objects, get table schemas and indexes, and execute SQL queries.
Enables connection to MySQL databases, providing tools to list database objects, get table schemas and indexes, and execute SQL queries.
Enables connection to PostgreSQL databases, providing tools to list database objects, get table schemas and indexes, and execute SQL queries.
Enables connection to SQLite databases, providing tools to list database objects, get table schemas and indexes, and execute SQL queries.
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., "@AdoMcpList all tables in the main database"
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.
AdoMcp
AdoMcp is a Model Context Protocol (MCP) server that helps large language models (LLMs) understand database structure, read table comments, and execute SQL queries.
AdoMcp 是一个基于 Model Context Protocol (MCP) 的数据库工具服务,帮助大型语言模型(LLM)理解数据库结构、读取表注释、执行 SQL 查询。
MCP Tools
Tool | Description |
| List configured database connections |
| Add (or replace) a database connection at runtime |
| Remove a dynamically-added connection |
| List database objects (table/view/procedure/function/trigger/sequence/synonym, etc.) |
| Get table schema details (columns/types/nullability/PK/default/comments) |
| Get table indexes |
| Execute read-only SQL and return CSV |
| Execute write SQL (requires |
Related MCP server: ExecuteAutomation Database Server
Recommended Tool Workflow (for LLM agents)
To reduce mistakes (wrong database/schema/object), use tools in this order:
list_connectionsto discover available connections.If none are available, call
add_connection.Before inspecting a table/view, call
list_objectsto locateschema + objectType + objectName.Use
get_table_schemafor column details (type, nullability, PK, default, comments).Use
get_table_indexeswhen index/key design matters.Use
query_sqlonly for read-only verification.Use
execute_sqlonly when explicitly authorized and server is started with--allow-any-sql.
Oracle note: objects without owner prefix may be synonyms. Always confirm the real schema via list_objects first.
Supported Databases
Database | Driver | Comment support |
SQL Server |
|
|
MySQL / MariaDB |
|
|
PostgreSQL |
|
|
SQLite |
| — (SQLite has no native comments) |
Oracle |
|
|
ORM support: Dapper
Requirements
Quick Start
1. Configure database connections (optional)
AdoMcp loads configuration from multiple sources (later sources override earlier ones):
appsettings.json(in the app directory)appsettings.{Environment}.json~/.adomcp.json— user-level config (%USERPROFILE%\.adomcp.jsonon Windows), persists connections andAllowAnySqlwithout touching the app directoryEnvironment variables prefixed
ADOMCP_
You can pre-configure connections in any of these. You can also skip this step entirely and let the LLM add connections dynamically via the add_connection tool.
{
"AllowAnySql": false,
"Databases": [
{
"Name": "mydb",
"DbType": "SqlServer",
"ConnectionString": "Server=localhost;Database=MyDb;User Id=sa;Password=***;TrustServerCertificate=true;",
"Description": "Main business database"
}
]
}Supported DbType values: SqlServer | MySql | PostgreSql | Sqlite | Oracle
Security tip: Use .NET User Secrets or environment variables to manage connection strings in production.
User-level config example (~/.adomcp.json)
Create ~/.adomcp.json in your home directory to persist personal connections and settings across projects:
{
"AllowAnySql": true,
"Databases": [
{
"Name": "local-pg",
"DbType": "PostgreSql",
"ConnectionString": "Host=localhost;Database=dev;Username=postgres;Password=***;",
"Description": "Local PostgreSQL dev DB"
}
]
}2. Run the server
Default mode
By default the server runs in stdio mode (the standard MCP transport for local clients).
Use --http (or ADOMCP_MODE=http) to switch to HTTP/SSE mode.
# stdio mode (default) - all logs go to stderr; stdout carries only MCP JSON-RPC
dnx -y AdoMcpSpecify mode manually
# stdio mode (all logs go to stderr; stdout carries only MCP JSON-RPC)
dnx -y AdoMcp -- --stdio
# HTTP/SSE mode (default: http://localhost:5100, MCP endpoint /mcp)
dnx -y AdoMcp -- --http
# Via environment variable
ADOMCP_MODE=http
dnx -y AdoMcpEnable execute_sql (write operations)
By default the execute_sql tool is disabled to prevent unauthorised writes.
Enable it via CLI flag, config file, or environment variable (CLI flag wins when explicitly set):
# CLI flag
# Combine with transport mode
dnx -y AdoMcp -- --http --allow-any-sql// ~/.adomcp.json or appsettings.json
{
"AllowAnySql": true
}# Environment variable
# ADOMCP_ALLOWANYSQL=true dnx -y AdoMcpPriority: --allow-any-sql CLI > ADOMCP_ALLOWANYSQL env > ~/.adomcp.json AllowAnySql > appsettings.json AllowAnySql > false (default).
3. Alternative: Install as a global .NET tool
After the package is published to NuGet.org, you can also install it as a global tool:
dotnet tool install -g AdoMcp
adomcpYou can also run dnx directly (installs and runs on demand, .NET 10+):
dnx -y AdoMcp -- --allow-any-sqlDynamic connections at runtime (no config file needed)
LLMs can add new database connections during a session using add_connection:
User: Connect me to Oracle database oradb01
LLM → calls add_connection(
connectionString = "Data Source=oradb01:1521/PROD;User Id=appuser;Password=***;",
dbType = "Oracle",
name = "prod-oracle",
description = "Production Oracle DB"
)
→ returns: Connection 'prod-oracle' (Oracle) added successfully.
LLM → calls list_objects(connectionName = "prod-oracle")Dynamically-added connections exist only for the lifetime of the process; restart the server or add the connection to appsettings.json for persistence.
Client configuration
Via dnx (stdio)
{
"mcpServers": {
"adomcp": {
"command": "dnx",
"args": ["-y", "AdoMcp"]
}
}
}Via HTTP/SSE
Start the server first:
dnx -y AdoMcp -- --httpThen configure the client:
{
"mcpServers": {
"adomcp": {
"url": "http://localhost:5100/mcp"
}
}
}Environment variables
All environment variables are prefixed with ADOMCP_ (override appsettings.json):
Variable | Description |
| Transport mode: |
| HTTP listen address, e.g. |
| Enable the |
| JSON-encoded |
MCP Registries
AdoMcp is registered in the official MCP Registry under the server name io.github.John0King/adomcp.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
- mcpOAuthcom.gibsonai
GibsonAI MCP server: manage your databases with natural language
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze data—enabling direct access to enterprise analytics data without requiring manual SQL coding.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Large Language Models to access and interact with database connections, including viewing schemas and performing CRUD operations on connected databases.- AlicenseNot gradedqualityFmaintenanceA Model Context Protocol server that enables LLMs like Claude to interact with SQLite and SQL Server databases, allowing for schema inspection and SQL query execution.806380MIT
- AlicenseAqualityBmaintenanceA Model Context Protocol server that enables large language models to access database metadata and perform cross-engine data querying across diverse database ecosystems.1652Apache 2.0
- FlicenseAqualityDmaintenanceAn MCP server that connects LLMs to SQL databases for development assistance, enabling query execution, schema exploration, and data manipulation while providing safety controls against destructive operations.5
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/John0King/AdoMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server