This MCP Server for ArangoDB is a TypeScript-based service that enables interaction with ArangoDB databases through Model Context Protocol tools, offering seamless integration with applications like Claude and VSCode extensions.
Key capabilities include:
Execute AQL queries with optional bind variables
Insert documents into collections (with auto-generated keys if needed)
Update existing documents
Remove documents from collections
Backup collections to JSON files
List all collections in the database
Create new collections with customizable type and synchronization behavior
Provides database interaction capabilities with ArangoDB, implementing core operations like executing AQL queries, inserting/updating/removing documents, creating and listing collections, and backing up data to JSON files.
Click on "Install 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., "@MCP Server for ArangoDBlist all collections 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.
MCP Server for ArangoDB
A Model Context Protocol server for ArangoDB
This is a TypeScript-based MCP server that provides database interaction capabilities through ArangoDB. It implements core database operations and allows seamless integration with ArangoDB through MCP tools. You can use it wih Claude app and also extension for VSCode that works with mcp like Cline!
Features
Tools
Tool | Category | Read-only | Mutates data/schema | Purpose |
| Query | No | Maybe | Execute general AQL with bind variables, bounded results, and query guardrails. |
| Query | Yes | No | Execute read-only AQL and reject write/DDL keywords. |
| Query | Yes | No | Parse and validate AQL without executing it. |
| Query | Yes | No | Inspect AQL execution plans, index usage, and optimizer output. |
| Discovery | Yes | No | Summarize collections, counts, indexes, and sample fields. |
| Discovery | Yes | No | List collections in the configured database. |
| Discovery | Yes | No | Return collection properties, count, and indexes. |
| Collection | No | Yes | Create document or edge collections. |
| Collection | No | Yes | Drop a collection, requiring |
| Document | Yes | No | Fetch one document by collection and |
| Document | Yes | No | List documents with |
| Document | Yes | No | Count documents in a collection. |
| Document | Yes | No | Return a small random sample for schema discovery. |
| Document | No | Yes | Insert one document into a collection. |
| Document | No | Yes | Insert up to 1000 documents in one request. |
| Document | No | Yes | Partially update one document by |
| Document | No | Yes | Patch up to 1000 documents by |
| Document | No | Yes | Remove one document by |
| Index | Yes | No | List indexes for a collection. |
| Index | No | Yes | Create persistent, geo, TTL, or inverted indexes. |
| ArangoSearch | Yes | No | List ArangoSearch and search-alias Views. |
| ArangoSearch | No | Yes | Create an ArangoSearch View linked to a collection. |
| ArangoSearch | Yes | No | Search an ArangoSearch View with analyzer-aware BM25 ranking. |
| Analyzer | Yes | No | List ArangoSearch Analyzers. |
| Analyzer | No | Yes | Create an ArangoSearch Analyzer. |
| Graph | Yes | No | List named graphs. |
| Graph | No | Yes | Create a named graph with one edge definition. |
| Graph | No | Yes | Insert an edge document with |
| Graph | Yes | No | Traverse edges from a start vertex using an edge collection or named graph. |
| Graph | Yes | No | Find the shortest path between two vertices using an edge collection or named graph. |
| Backup | No | Filesystem | Backup collections to JSON files under |
All tools return JSON text and structuredContent when successful. Read-heavy tools expose bounded limit parameters to keep responses agent-friendly. Query tools also support guardrails such as memoryLimit, maxRuntime, and failOnWarning where applicable.
Related MCP server: SQL MCP Server
Installation
Installing via NPM
To install arango-server globally via NPM, run the following command:
npm install -g arango-serverRunning via NPX
To run arango-server directly without installation, use the following command:
npx -y arango-serverConfiguring for VSCode Agent
To use arango-server with the VSCode Copilot agent, you must have at least VSCode 1.99.0 installed and follow these steps:
Create or edit the MCP configuration file:
Workspace-specific configuration: Create or edit the
.vscode/mcp.jsonfile in your workspace.User-specific configuration: Optionally, specify the server in the setting(mcp) VS Code user settings to enable the MCP server across all workspaces.
Tip: You can refer here to the MCP configuration documentation of VSCode for more details on how to set up the configuration file.
Add the following configuration:
{ "servers": { "arango-mcp": { "type": "stdio", "command": "npx", "args": ["-y", "arango-server"], "env": { "ARANGO_URL": "http://localhost:8529", "ARANGO_DB": "your_database_name", "ARANGO_USERNAME": "your_username", "ARANGO_PASSWORD": "your_password" } } } }Start the MCP server:
Open the Command Palette in VSCode (
Ctrl+Shift+PorCmd+Shift+Pon Mac).Run the command
MCP: Start Serverand selectarango-mcpfrom the list.
Verify the server:
Open the Chat view in VSCode and switch to Agent mode.
Use the
Toolsbutton to verify that thearango-servertools are available.
To use with Claude Desktop
Go to: Settings > Developer > Edit Config or
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%/Claude/claude_desktop_config.json
You can check out mcp documentation to set it up too.
To use with OpenCode
Add the following configuration to your OpenCode config file, such as opencode.json or opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"arango": {
"type": "local",
"command": ["npx", "-y", "arango-server"],
"enabled": true,
"environment": {
"ARANGO_URL": "your_database_url",
"ARANGO_DB": "your_database_name",
"ARANGO_USERNAME": "your_username",
"ARANGO_PASSWORD": "your_password"
}
}
}
}After restarting OpenCode, ask it to use the arango MCP tools for ArangoDB tasks.
To use with Cline VSCode Extension
Go to: Cline Extension > MCP Servers > Edit Configuration or
MacOS:
~/Library/Application Support/Code/User/globalStorage/cline.cline/config.jsonWindows:
%APPDATA%/Code/User/globalStorage/cline.cline/config.json
Add the following configuration to the mcpServers section:
{
"mcpServers": {
"arango": {
"command": "npx",
"args": ["-y", "arango-server"],
"env": {
"ARANGO_URL": "your_database_url",
"ARANGO_DB": "your_database_name",
"ARANGO_USERNAME": "your_username",
"ARANGO_PASSWORD": "your_password"
}
}
}
}You can also use the above configuration to get this server working with WARP
Environment Variables
The server requires the following environment variables:
ARANGO_URL- ArangoDB server URL (note: 8529 is the default port for ArangoDB for local development)ARANGO_DB- Database nameARANGO_USERNAME- Database userARANGO_PASSWORD- Database passwordARANGO_BACKUP_ROOT- Optional root directory forarango_backupoutput. Defaults to./backups.
Usage
You can pretty much provide any meaningful prompt and Claude will try to execute the appropriate function.
Some example propmts:
"List all collections in the database"
"Query all users"
"Insert a new document with name 'John Doe' and email "john@example.com' to the 'users' collection"
"Update the document with key '123456' or name 'Jane Doe' to change the age to 48"
"Create a new collection named 'products'"
Usage with Claude App
👁 Demo of using ArangoDB MCP server with Claude App
Uasge with Cline VSCode extension
👁 Demo of using ArangoDB MCP server with Cline VSCode extension
Query all users:
{
"query": "FOR user IN users RETURN user",
"limit": 100
}Insert a new document:
{
"collection": "users",
"document": {
"name": "John Doe",
"email": "john@example.com"
}
}Update a document:
{
"collection": "users",
"key": "123456",
"update": {
"name": "Jane Doe"
}
}Remove a document:
{
"collection": "users",
"key": "123456"
}List all collections:
{
} // No parameters requiredBackup database collections:
{
"outputDir": "nightly_1", // Safe subdirectory name under ARANGO_BACKUP_ROOT. Absolute paths and slashes are rejected.
"collection": "users", // Optional. If omitted, all collections are backed up.
"docLimit": 1000 // Optional. Maximum documents per collection. Defaults to 1000 and is capped at 10000.
}Set ARANGO_BACKUP_ROOT to choose where backups are stored. The server rejects path traversal, absolute paths, symlink escapes, and existing output files to mitigate arbitrary file write risks.
Create a new collection:
{
"name": "products",
"type": "document", // "document" or "edge" (optional, defaults to "document")
"waitForSync": false // Optional, defaults to false
}Drop a collection:
{
"name": "products",
"confirm": true
}Note: The server is database-structure agnostic and can work with any collection names or structures as long as they follow ArangoDB's document and edge collection models.
Disclaimer
For Development Use Only
This tool is designed for local development environments only. While technically it could connect to a production database, this would create significant security risks and is explicitly discouraged. We use it exclusively with our development databases to maintain separation of concerns and protect production data.
Development
Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.
Clone the repository
Install dependencies:
npm run buildFor development with auto-rebuild:
npm run watch
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. recommended debugging can be done by using MCP Inspector for development:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
Testing
npm testThe test suite includes regression coverage for the arango_backup path handling that prevents absolute paths, traversal, and symlink escapes.
To run the integration smoke test with a local Docker ArangoDB instance:
npm run test:integrationThe integration test starts a temporary Docker ArangoDB instance, starts the MCP server over stdio, lists tools, verifies outputSchema, creates a temporary collection, inserts documents, queries with limit, verifies backup output stays under ARANGO_BACKUP_ROOT, rejects an absolute backup path, cleans up the collection, and stops the container.
The test container uses host port 18529 by default to avoid conflicting with a local ArangoDB on 8529. Override it with ARANGO_PORT if needed.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ravenwits/mcp-server-arangodb'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
