Multi-model database
## ArangoDB MCP Server: Multi-Model Database The **ArangoDB MCP Server** integrates ArangoDB into Google Antigravity, enabling multi-model database operations with documents, graphs, and key-value access in a single query language directly from your development environment. ### Why ArangoDB MCP? - **Multi-Model**: Documents, graphs, and key-value in one database - **AQL**: Powerful unified query language - **Graph Traversals**: Native graph processing - **Joins**: Cross-collection joins without denormalization - **Scalable**: Horizontal scaling with sharding ### Key Features #### 1. AQL Queries ```python # Query documents result = await mcp.query(""" FOR user IN users FILTER user.status == "active" SORT user.created_at DESC LIMIT 10 RETURN { id: user._key, name: user.name, email: user.email } """) for user in result: print(f"User: {user['name']}") ``` #### 2. Graph Traversals ```python # Traverse graph result = await mcp.query(""" FOR v, e, p IN 1..3 OUTBOUND @start_vertex GRAPH 'social' OPTIONS {bfs: true} RETURN { vertex: v, edge: e, path: p } """, bind_vars={"start_vertex": "users/user1"}) # Find shortest path path = await mcp.query(""" FOR v, e IN OUTBOUND SHORTEST_PATH @from TO @to GRAPH 'routes' RETURN {vertex: v, edge: e} """, bind_vars={"from": "cities/NYC", "to": "cities/LA"}) ``` #### 3. Document Operations ```python # Insert document doc = await mcp.insert( collection="users", document={ "name": "John Doe", "email": "john@example.com", "status": "active" } ) # Update document await mcp.update( collection="users", key=doc["_key"], document={"status": "premium"} ) # Delete document await mcp.remove(collection="users", key=doc["_key"]) ``` #### 4. Collection Management ```python # Create collection await mcp.create_collection( name="events", type="document" ) # Create edge collection await mcp.create_collection( name="follows", type="edge" ) # Create graph await mcp.create_graph( name="social", edge_definitions=[{ "collection": "follows", "from": ["users"], "to": ["users"] }] ) ``` ### Configuration ```json { "mcpServers": { "arangodb": { "command": "npx", "args": ["-y", "@anthropic/mcp-arangodb"], "env": { "ARANGO_URL": "http://localhost:8529", "ARANGO_DATABASE": "mydb", "ARANGO_USERNAME": "root", "ARANGO_PASSWORD": "your-password" } } } } ``` ### Use Cases **Social Networks**: Model relationships and traverse social graphs. **Knowledge Graphs**: Build interconnected knowledge bases. **Recommendation Engines**: Graph-based recommendations. **Fraud Detection**: Analyze transaction patterns and relationships. The ArangoDB MCP enables multi-model database operations within your development environment.
{
"mcpServers": {
"arangodb": {
"mcpServers": {
"arangodb": {
"env": {
"ARANGO_DB": "_system",
"ARANGO_URL": "http://localhost:8529",
"ARANGO_USER": "root"
},
"args": [
"-y",
"arangodb-mcp-server"
],
"command": "npx"
}
}
}
}
}