MCP Server for ArangoDB logo

MCP Server for ArangoDB

Community
ravenwits

This is a TypeScript-based MCP server that provides database interaction capabilities through ArangoDB.

Publisherravenwits
Repositorymcp-server-arangodb
LanguageTypeScript
Forks
11
Stars
47
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    MCP Server for ArangoDB exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    47 stars and 11 forks from the linked repository.

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

ToolCategoryRead-onlyMutates data/schemaPurpose
arango_queryQueryNoMaybeExecute general AQL with bind variables, bounded results, and query guardrails.
arango_read_queryQueryYesNoExecute read-only AQL and reject write/DDL keywords.
arango_validate_queryQueryYesNoParse and validate AQL without executing it.
arango_explain_queryQueryYesNoInspect AQL execution plans, index usage, and optimizer output.
arango_describe_databaseDiscoveryYesNoSummarize collections, counts, indexes, and sample fields.
arango_list_collectionsDiscoveryYesNoList collections in the configured database.
arango_get_collectionDiscoveryYesNoReturn collection properties, count, and indexes.
arango_create_collectionCollectionNoYesCreate document or edge collections.
arango_drop_collectionCollectionNoYesDrop a collection, requiring confirm: true.
arango_get_documentDocumentYesNoFetch one document by collection and _key.
arango_list_documentsDocumentYesNoList documents with limit and offset pagination.
arango_count_documentsDocumentYesNoCount documents in a collection.
arango_sample_documentsDocumentYesNoReturn a small random sample for schema discovery.
arango_insertDocumentNoYesInsert one document into a collection.
arango_bulk_insertDocumentNoYesInsert up to 1000 documents in one request.
arango_updateDocumentNoYesPartially update one document by _key.
arango_bulk_updateDocumentNoYesPatch up to 1000 documents by _key or _id.
arango_removeDocumentNoYesRemove one document by _key.
arango_list_indexesIndexYesNoList indexes for a collection.
arango_create_indexIndexNoYesCreate persistent, geo, TTL, or inverted indexes.
arango_list_viewsArangoSearchYesNoList ArangoSearch and search-alias Views.
arango_create_search_viewArangoSearchNoYesCreate an ArangoSearch View linked to a collection.
arango_searchArangoSearchYesNoSearch an ArangoSearch View with analyzer-aware BM25 ranking.
arango_list_analyzersAnalyzerYesNoList ArangoSearch Analyzers.
arango_create_analyzerAnalyzerNoYesCreate an ArangoSearch Analyzer.
arango_list_graphsGraphYesNoList named graphs.
arango_create_graphGraphNoYesCreate a named graph with one edge definition.
arango_insert_edgeGraphNoYesInsert an edge document with _from and _to.
arango_traverseGraphYesNoTraverse edges from a start vertex using an edge collection or named graph.
arango_shortest_pathGraphYesNoFind the shortest path between two vertices using an edge collection or named graph.
arango_backupBackupNoFilesystemBackup collections to JSON files under ARANGO_BACKUP_ROOT.

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.

Installation

Installing via NPM

To install arango-server globally via NPM, run the following command:

bash
npm install -g arango-server

Running via NPX

To run arango-server directly without installation, use the following command:

bash
npx -y arango-server

Configuring 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:

  1. Create or edit the MCP configuration file:

    • Workspace-specific configuration: Create or edit the .vscode/mcp.json file 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.

  2. Add the following configuration:

    json
    {
      "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"
          }
        }
      }
    }
  3. Start the MCP server:

    • Open the Command Palette in VSCode (Ctrl+Shift+P or Cmd+Shift+P on Mac).
    • Run the command MCP: Start Server and select arango-mcp from the list.
  4. Verify the server:

    • Open the Chat view in VSCode and switch to Agent mode.
    • Use the Tools button to verify that the arango-server tools are available.

To use with Claude Desktop

Go to: Settings > Developer > Edit Config or

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %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:

json
{
  "$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.json
  • Windows: %APPDATA%/Code/User/globalStorage/cline.cline/config.json

Add the following configuration to the mcpServers section:

json
{
  "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 name
  • ARANGO_USERNAME - Database user
  • ARANGO_PASSWORD - Database password
  • ARANGO_BACKUP_ROOT - Optional root directory for arango_backup output. 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:

typescript
{
  "query": "FOR user IN users RETURN user",
  "limit": 100
}

Insert a new document:

typescript
{
  "collection": "users",
  "document": {
    "name": "John Doe",
    "email": "john@example.com"
  }
}

Update a document:

typescript
{
  "collection": "users",
  "key": "123456",
  "update": {
    "name": "Jane Doe"
  }
}

Remove a document:

typescript
{
  "collection": "users",
  "key": "123456"
}

List all collections:

typescript
{
} // No parameters required

Backup database collections:

typescript
{
  "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:

typescript
{
  "name": "products",
  "type": "document", // "document" or "edge" (optional, defaults to "document")
  "waitForSync": false // Optional, defaults to false
}

Drop a collection:

typescript
{
  "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.

  1. Clone the repository

  2. Install dependencies:

    bash
    npm run build
  3. For development with auto-rebuild:

    bash
    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:

bash
npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Testing

bash
npm test

The 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:

bash
npm run test:integration

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

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "ravenwits-mcp-server-arangodb": {
      "command": "npx",
      "args": [
        "-y",
        "arango-server"
      ]
    }
  }
}

Use MCP Server for ArangoDB MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once MCP Server for ArangoDB is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add MCP Server for ArangoDB as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the MCP Server for ArangoDB MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "ravenwits-mcp-server-arangodb": {
      "command": "npx",
      "args": [
        "-y",
        "arango-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the MCP Server for ArangoDB MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the MCP Server for ArangoDB MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use MCP Server for ArangoDB to help me with this task?
MCP Server for ArangoDB
Sure. I read it.
Here is what I found using MCP Server for ArangoDB.

Frequently asked questions

What is the MCP Server for ArangoDB MCP server used for?

MCP Server for ArangoDB is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use MCP Server for ArangoDB MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use MCP Server for ArangoDB with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use MCP Server for ArangoDB MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With MCP Server for ArangoDB connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect MCP Server for ArangoDB MCP to TypingMind?

MCP Server for ArangoDB runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does MCP Server for ArangoDB MCP provide in TypingMind?

MCP Server for ArangoDB exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use MCP Server for ArangoDB MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If MCP Server for ArangoDB requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇