Demo Database MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Demo Database MCP — an MCP server protected by AgentAdmit
A small database MCP server (stdio) that shows what user-mediated authorization looks like in practice. It is the "Database Query MCP Server" example from the AgentAdmit MCP Operator Guide, running for real against the hosted service on a test key.
What the user gets that a raw MCP server cannot give them:
The grant starts with the human. With no token, every tool answers with a hosted authorization link. The user opens it, picks which permissions this agent gets (
db:read,db:write,db:delete) and for how long, and confirms with a passkey. The agent cannot complete that page itself.Every call is verified. Each tool call is checked against the hosted service with the exact tool, arguments digest, and a plain-language summary. Revoke the connection and the next call is refused. Every call is attributed to the agent that made it.
Destructive tools confirm each time.
drop_tableanddelete_rowsstop until the user confirms exactly that call with a passkey on a hosted page, or declines it. A decline is a final answer: the agent is told, no new link is minted, and the same action stays refused until the request window ends.
Run it
npm install --ignore-scripts
cp agentadmit.example.yaml agentadmit.yaml # paste your app's aa_test_ key from the AgentAdmit dashboard
npm run register-scopes # registers db:read / db:write / db:delete (confirm each time)
npm run seed # creates demo.db with a few customers and ordersAdd it to your MCP client (Claude Code shown):
claude mcp add demo-database-mcp -- node /path/to/agentadmit-mcp-showcase/src/server.mjsThen ask the agent to list the tables. It will hand you a link. The rest is the demo.
Related MCP server: valv
Tools
Tool | Scope | Human gate |
|
| grant |
|
| grant |
|
| grant |
|
| grant + confirm each call |
|
| grant + confirm each call |
Every tool accepts agentadmit_token (the STDIO pattern from the guide) and, on a retry after a confirmation, action_attestation_id.
What this does not claim
The gate is at the MCP layer: consent, scopes, per-call confirmation, decline, revocation, attribution. The database itself still trusts the server process; that is true of every MCP server. Evidence is tamper-evident, never tamper-proof.
Tests
npm testThe tests run the server in-process with an in-memory MCP client and a mocked hosted service, covering: no token → link; granted read → runs; missing scope → refused; confirm-each-time → link with the exact summary; declined → final answer; confirmed retry → runs; revoked → re-authorize; read-only SQL guard.
MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Hosted remote MCP for protected account access, permissions, activity history and supported undo.
Managed Postgres MCP: projects, SQL, docs search, and storage buckets via OAuth.
One MCP URL for all your connectors — scoped writes, enforced constraints, and a full audit trail.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConfig-driven MCP server that gives AI scoped, auditable database access without exposing the entire database.5 npm6MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that gives agents safe, policy-scoped access to your database via structured queries (never raw SQL), with read and opt-in write support.5MIT
- AlicenseNot gradedqualityCmaintenanceEnables secure, controlled access to existing relational databases via MCP, with API key authorization, read/write permissions, table-level allow/deny lists, SQL validation, rate limiting, audit logging, and a web management console. Supports PostgreSQL, MySQL, SQLite, SQL Server, and Oracle.28 npm2MIT
- AlicenseNot gradedqualityCmaintenanceProvides an OAuth-protected, scoped, and audited MCP server that lets AI assistants safely query business data through a fixed set of tools without direct database access.1MIT