# Aurabase Model Context Protocol (MCP) Server Reference > NPM package: @aurabase/mcp-server > Documentation: https://aurabase.dev/en/docs/mcp > Protocols: 2025-11-25 and 2026-07-28 (Streamable HTTP). Node.js ≥ 20. > Local transport (default): `npx -y -p @aurabase/mcp-server aurabase-mcp --url https://.aurabase.dev --project-id --service-role-key aura_sk_...` > Hosted service (`https://mcp.aurabase.dev/mcp`, OAuth 2.1): planned, not live yet. The Aurabase MCP server allows AI assistants (Cursor, Claude Desktop, Windsurf, Google Antigravity, VS Code, ChatGPT) to inspect and control an entire BaaS project. With a project key it exposes 82 of its 86 tools (the 4 management-plane tools need management credentials). ## AI Assistant Configuration ### 1. Local STDIO Mode (default) ```json { "mcpServers": { "aurabase": { "command": "npx", "args": [ "-y", "-p", "@aurabase/mcp-server", "aurabase-mcp", "--url", "https://.aurabase.dev", "--project-id", "", "--service-role-key", "aura_sk_..." ] } } } ``` ### 2. Local Streamable HTTP Mode Start the server with `--transport http --port 3001 --auth-token ` (same `--url`, `--project-id` and `--service-role-key`), then: ```json { "mcpServers": { "aurabase": { "url": "http://127.0.0.1:3001/mcp", "headers": { "Authorization": "Bearer " } } } } ``` ## Complete Catalogue of 86 MCP Tools ### Database (15 tools) - `list_tables`: List all tables in the public schema. - `describe_table`: Table structure, columns, types, and constraints. - `execute_sql`: Execute raw SQL queries (transactions supported). - `query_table`: Filtered SELECT queries with sorting and pagination. - `insert_rows`: Insert one or multiple rows into a table. - `update_rows`: Update rows matching filter criteria. - `delete_rows`: Delete rows matching filter criteria. - `call_rpc`: Call a PostgreSQL stored procedure. - `generate_types`: Generate TypeScript definitions from live schema. - `diff_schema`: Compute schema differences between states. - `list_migrations`: List applied migration history. - `apply_migration`: Apply a new timestamped SQL migration. - `explain_query`: Profile query execution plan (EXPLAIN ANALYZE). - `analyze_table`: Update table planner statistics (ANALYZE). - `get_db_size`: Report disk usage per table and database. ### Security & RLS (12 tools) - `list_rls_policies`: List active Row-Level Security policies. - `create_rls_policy`: Create a new RLS policy (USING and WITH CHECK). - `update_rls_policy`: Modify an existing policy. - `drop_rls_policy`: Remove an RLS policy. - `toggle_rls`: Enable or disable RLS on a table. - `get_security_advisors`: Scan for security vulnerabilities (tables without RLS, public keys exposed). - `list_sql_functions`: List registered PL/pgSQL functions. - `create_sql_function`: Create or replace a stored SQL function. - `drop_sql_function`: Remove a stored SQL function. - `list_sql_triggers`: List triggers on database tables. - `create_sql_trigger`: Attach a trigger to a table and procedure. - `drop_sql_trigger`: Remove an existing trigger. ### Auth & Users (7 tools) - `list_users`: List registered users with pagination. - `get_user`: Retrieve user metadata and identities by ID. - `create_user`: Programmatically create a user. - `update_user`: Update user password or metadata. - `delete_user`: Permanently delete a user account. - `ban_user`: Temporarily or permanently suspend an account. - `generate_link`: Generate password reset or magic links. ### S3 Storage (9 tools) - `list_buckets`: List all storage buckets. - `get_bucket`: Inspect bucket visibility and size policies. - `create_bucket`: Create a new bucket. - `empty_bucket`: Delete all objects in a bucket. - `list_files`: List objects with recursive prefix support. - `upload_file`: Upload a file (base64 or text). - `move_file`: Move or rename an object in storage. - `delete_files`: Batch delete objects. - `create_signed_url`: Issue pre-signed URL with configurable expiration. ### Edge Functions (6 tools) - `list_functions`: List deployed Edge Functions. - `get_function_info`: Inspect function runtime (Deno/WASM) and configuration. - `deploy_function`: Deploy a function from source code. - `invoke_function`: Synchronously execute a function and inspect response. - `delete_function`: Delete a deployed function. - `set_function_env`: Inject AES-256-GCM encrypted secrets. ### AI Gateway & RAG (5 tools) - `ai_completion`: Generate LLM chat completions through the unified proxy. - `index_document`: Chunk and embed text into the vector database. - `rag_query`: Semantic search augmented retrieval question-answering. - `vector_search`: Cosine similarity vector search on embeddings. - `create_vector_index`: Create an optimized HNSW index on vector columns. ### Realtime (3 tools) - `list_realtime_channels`: List active WebSocket channels. - `get_realtime_settings`: Inspect CDC replication parameters and limits. - `update_realtime_settings`: Update CDC bandwidth and channel configuration. ### Multi-Channel Notifications (10 tools) - `send_email`: Send transactional email via template. - `send_sms`: Send SMS via configured gateway. - `send_push_notification`: Send mobile push notification. - `list_notification_logs`: Delivery logs and delivery receipts. - `get_notification_settings`: Inspect gateway credentials. - `update_notification_settings`: Update provider credentials (SMTP, Twilio, FCM). - `list_notification_templates`: List notification templates. - `create_notification_template`: Create a new template. - `delete_notification_template`: Remove a template. - `get_notification_stats`: Delivery metrics, bounce rates, and error logs. ### Observability & Performance (5 tools) - `list_slow_queries`: Top slowest queries via `pg_stat_statements`. - `list_active_queries`: Currently running backend queries. - `cancel_query`: Terminate a long-running query PID. - `get_performance_advisors`: Indexing and performance optimization recommendations. - `list_extensions`: List available and active PostgreSQL extensions. ### Backups & Recovery (5 tools) - `list_backups`: Logical backup history. - `create_backup`: Trigger an immediate logical backup. - `restore_backup`: Restore a backup snapshot. - `get_backup_schedule`: Inspect automated backup schedule. - `set_backup_schedule`: Modify backup frequency. ### API Keys & Management Plane (9 tools) - `create_api_key` / `list_api_keys` / `revoke_api_key`: Manage anon and service_role keys. - `project_info`: Technical project metadata. - `list_all_projects`: List accessible projects. - `switch_project`: Switch AI agent context to another project. - `get_active_project`: Inspect currently targeted project. - `get_project_metrics`: Resource utilization metrics (RAM, CPU, storage, requests). - `search_docs`: Search official Aurabase technical documentation.