Alpha · developer tool
adminer-mcp
A local MCP server that lets an agent work with a database reachable only through the Adminer web interface.
- Technologies
- Python · MCP · Adminer · PostgreSQL
- My contribution
- My public project: a local MCP server for working with a database through Adminer.
- Sources checked
Repository ↗ · Documentation ↗
- AgentMCP tools
- adminer-mcpHTTP like a browser
- AdminerSQL command
no direct DB connection
The problem
Sometimes the only way I can reach a database is Adminer in the browser. Typically it sits behind a VPN, with no direct connection and no SSH tunnel. An agent cannot just connect to it. adminer-mcp is a local MCP server that logs in to Adminer over HTTP like a browser, sends SQL to the "SQL command" page and returns the results as structured data. It never connects to the database directly.
Architecture and decisions
The query tool accepts only read SQL and runs it in a read-only session. Writes go through execute, and only for profiles with allow_write; DDL needs allow_ddl. UPDATE/DELETE without a restricting WHERE requires an explicit confirmation. A transaction never outlives one tool call: atomic (all or nothing) and dry_run (run, show the result, roll back).
Each profile is one Adminer login; the agent chooses the profile and the database per call. Passwords come from the system keyring or environment variables, never from tool parameters.
Status and tradeoffs
This is alpha. It has been tested with Adminer 6.3.1 and PostgreSQL (the pgsql driver). Other Adminer drivers are planned. Adminer has no API, so a different version can change the HTML the server parses; the server warns about untested versions.
The first release is v0.1.0 from 26 November 2026.
Connections
coding-worker is another MCP interface, this time for delegating development tasks.