Native AI Agent Integration

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.

45
Built-in Tools
27020
Standard Port
Core + Docker
Deployment
RBAC
Role Security
Streamable HTTP Endpoint
Port 27020
Endpoint URLPath: /mcp
http://localhost:27020/mcp
Quick Start in TypeScript
new AxioDB({ MCP: true });
Supported Clients & Protocols
JSON-RPC 2.0SSE StreamClaude CodeCursorWindsurfAntigravity
1

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.

bash
1# Launch MCP server only on port 27020
2axiodb serve mcp
3
4# Or start full stack: HTTP (27018) + TCP (27019) + GUI Dashboard + MCP (27020)
5axiodb serve full
Endpoint: http://localhost:27020/mcp — automatically bootstrapped in a temporary sandbox.
2

Connect Your AI Tools

Register the AxioDB endpoint (http://localhost:27020/mcp) with your favorite AI agent:

Claude Code

Run in your terminal to add AxioDB tools globally or per-project:

bash
1claude mcp add --transport http axiodb http://localhost:27020/mcp
Cursor

Add to .cursor/mcp.json or global user settings:

json
1{
2 "mcpServers": {
3 "axiodb": {
4 "url": "http://localhost:27020/mcp"
5 }
6 }
7}
Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

json
1{
2 "mcpServers": {
3 "axiodb": {
4 "serverUrl": "http://localhost:27020/mcp"
5 }
6 }
7}
Google Antigravity (IDE & CLI)

Add to ~/.gemini/config/mcp_config.json:

json
1{
2 "mcpServers": {
3 "axiodb": {
4 "serverUrl": "http://localhost:27020/mcp"
5 }
6 }
7}
GitHub Copilot CLI

Add to ~/.copilot/mcp-config.json:

json
1{
2 "mcpServers": {
3 "axiodb": {
4 "type": "http",
5 "url": "http://localhost:27020/mcp"
6 }
7 }
8}
OpenAI Codex CLI

Run CLI command or edit ~/.codex/config.toml:

bash
1codex mcp add axiodb --url http://localhost:27020/mcp

Available MCP Tools (45)

Full-featured toolset covering the complete database lifecycle.

Session & Auth

4 tools

Authenticate agents and manage sessions

  • axiodb_login
  • axiodb_logout
  • axiodb_whoami
  • axiodb_change_own_password

Database Management

4 tools

Create, inspect, and drop databases

  • axiodb_create_database
  • axiodb_delete_database
  • axiodb_database_exists
  • axiodb_get_instance_info

Collection Management

4 tools

Manage collections inside databases

  • axiodb_create_collection
  • axiodb_delete_collection
  • axiodb_collection_exists
  • axiodb_get_collection_info

Documents & Aggregation

9 tools

CRUD 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 tools

Atomic 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 tools

Create and manage dual-write memory/disk indexes

  • axiodb_create_index
  • axiodb_drop_index
  • axiodb_list_indexes

User & Role Administration

9 tools

Role-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 tools

Real-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.

✓ Role-based permissions enforced on every tool call✓ Assign View role for read-only agents✓ Memory-only sliding session tokens

Empower Your AI Agents Today

Add AxioDB to your agent workflows for lightning-fast embedded document storage, ACID transactions, and zero-setup local persistence.