AxioDB MCP Server Guide
Connect AI coding assistants and autonomous agents directly to AxioDB via the Model Context Protocol (MCP). AxioDB includes a built-in MCP server providing 46 tools on port 27020 with full RBAC authentication, JSON-RPC 2.0 / SSE support, and zero external dependencies.
Start the MCP Server
You can start the MCP server directly using the AxioDB CLI, in your Node.js / TypeScript code, or via Docker.
Use axiodb serve mcp or axiodb serve full to launch the MCP server instantly with Bun.
1# Launch MCP server only on port 270202axiodb serve mcp3
4# Or start full stack: HTTP (27018) + TCP (27019) + GUI Dashboard + MCP (27020)5axiodb serve fullhttp://localhost:27020/mcp — automatically bootstrapped in a temporary sandbox.Connect Your AI Tools
Register the AxioDB endpoint (http://localhost:27020/mcp) with your favorite AI agent:
Run in your terminal to add AxioDB tools globally or per-project:
1claude mcp add --transport http axiodb http://localhost:27020/mcpAdd to .cursor/mcp.json or global user settings:
1{2 "mcpServers": {3 "axiodb": {4 "url": "http://localhost:27020/mcp"5 }6 }7}Add to ~/.codeium/windsurf/mcp_config.json:
1{2 "mcpServers": {3 "axiodb": {4 "serverUrl": "http://localhost:27020/mcp"5 }6 }7}Add to ~/.gemini/config/mcp_config.json:
1{2 "mcpServers": {3 "axiodb": {4 "serverUrl": "http://localhost:27020/mcp"5 }6 }7}Add to ~/.copilot/mcp-config.json:
1{2 "mcpServers": {3 "axiodb": {4 "type": "http",5 "url": "http://localhost:27020/mcp"6 }7 }8}Run CLI command or edit ~/.codex/config.toml:
1codex mcp add axiodb --url http://localhost:27020/mcpAvailable MCP Tools (45)
Full-featured toolset covering the complete database lifecycle.
Session & Auth
4 toolsAuthenticate agents and manage sessions
- axiodb_login
- axiodb_logout
- axiodb_whoami
- axiodb_change_own_password
Database Management
4 toolsCreate, inspect, and drop databases
- axiodb_create_database
- axiodb_delete_database
- axiodb_database_exists
- axiodb_get_instance_info
Collection Management
4 toolsManage collections inside databases
- axiodb_create_collection
- axiodb_delete_collection
- axiodb_collection_exists
- axiodb_get_collection_info
Documents & Aggregation
9 toolsCRUD operations, aggregation pipelines, and vector similarity search
- axiodb_insert_document
- axiodb_insert_many_documents
- axiodb_query_documents
- axiodb_vector_search
- axiodb_update_document
- axiodb_delete_document
- axiodb_total_documents
- axiodb_find_documents_by_ids
- axiodb_aggregate
Transactions
9 toolsAtomic multi-document transactions with WAL
- axiodb_begin_transaction
- axiodb_transaction_insert
- axiodb_transaction_update
- axiodb_transaction_delete
- axiodb_transaction_savepoint
- axiodb_transaction_rollback_to_savepoint
- axiodb_transaction_release_savepoint
- axiodb_commit_transaction
- axiodb_rollback_transaction
Indexes
3 toolsCreate and manage dual-write memory/disk indexes
- axiodb_create_index
- axiodb_drop_index
- axiodb_list_indexes
User & Role Administration
9 toolsRole-based access control and user management
- axiodb_list_users
- axiodb_create_user
- axiodb_update_user_role
- axiodb_reset_user_password
- axiodb_delete_user
- axiodb_list_roles
- axiodb_create_role
- axiodb_delete_role
- axiodb_list_permissions
Monitoring & Health
4 toolsReal-time health status, metrics, and diagnostics
- axiodb_health
- axiodb_get_dashboard_stats
- axiodb_instance_info
- axiodb_ping
Built-in Safety & Human-in-the-Loop Confirmation
Destructive operations (e.g., dropping a database, dropping a collection, or bulk deletion) issue standard MCP elicitation prompts asking the human user to confirm before execution proceeds. If declined, the operation is safely aborted.
View role for read-only agents✓ Memory-only sliding session tokensEmpower Your AI Agents Today
Add AxioDB to your agent workflows for lightning-fast embedded document storage, ACID transactions, and zero-setup local persistence.
