Demo Database MCP
Click on "Deploy 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., "@Demo Database MCPlist the tables in the 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.
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: scopedb-mcp
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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Build multi-tenant apps over MCP. Schemas, CRUD, deploys — access control enforced server-side.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
- GentkeyOAuthcom.gentkey
One MCP URL for all your connectors — scoped writes, enforced constraints, and a full audit trail.
Hosted Google Ads MCP with OAuth, bounded reads, and prepare/confirm writes.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceEnables remote database access (RDBMS and MongoDB) through MCP tools, supporting read/write queries, schema management, and more.-
- AlicenseNot gradedqualityDmaintenanceConfig-driven MCP server that gives AI scoped, auditable database access without exposing the entire database.3 npm6MIT
- FlicenseNot gradedqualityBmaintenanceA production-grade MCP server over Postgres, providing secure data operations with tenant isolation, exact-once mutations, loop-aware rate limiting, and a tamper-evident audit trail.1-
- AlicenseNot gradedqualityBmaintenanceAn 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.11 npm5MIT