Hydra DB MCP Server
This server is an MCP server for Hydra DB that provides agentic memory management with knowledge-graph enriched context. It allows you to:
Query memories (
hydradb_query): Search stored memories using semantic search (fastmode) or deeper graph-traversal-based recall (thinkingmode), with optional knowledge graph context including entity paths and relations.Ingest information (
hydradb_ingest): Store notes, documents, or conversation histories; supports plain text and markdown. Hydra DB automatically extracts insights, preferences, and builds a knowledge graph.List contents (
hydradb_list): Browse memories or knowledge sources, optionally filtered by source IDs.Inspect sources (
hydradb_inspect): Fetch full original content of a source by ID, returning text, a presigned URL, or both.Delete (
hydradb_delete): Permanently remove a memory or knowledge source by ID.
All tools have deprecated aliases (e.g., hydra_db_search, hydra_db_store) for backward compatibility. Configuration requires an API key and database name, with optional environment variables for custom collection and base URL.
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., "@Hydra DB MCP Serversearch my memories for key learnings"
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.
Hydra DB — MCP Server
MCP (Model Context Protocol) server for Hydra DB, the state-of-the-art agentic memory. Provides tools for storing, recalling, and managing memories with knowledge-graph enriched context.
Available Tools
The tool names follow the canonical HydraDB vocabulary. Every previous name still
works as a deprecated alias (marked as such in its description) so existing
mcp.json files keep working — but new integrations should use the canonical
names below.
Canonical tool | Deprecated alias(es) |
|
|
|
|
|
|
|
|
|
|
hydradb_query
Search through Hydra DB memories. Returns relevant chunks with graph-enriched context including entity paths and knowledge graph relations.
Parameter | Type | Required | Description |
| string | Yes | The search query to find relevant memories |
| number | No | Maximum number of memory chunks to return (1-50, default: 10) |
| string | No | Recall mode: |
| boolean | No | Whether to include knowledge graph relations in results (default: true) |
hydradb_ingest
Save information to Hydra DB memory. Hydra DB automatically extracts insights, preferences, and builds a knowledge graph from the stored content. Provide text to store a note/document, or turns to ingest a conversation.
Parameter | Type | Required | Description |
| string | No* | The information to store in memory |
| string | No | Title for the memory entry (default: |
| string | No | Source identifier to group related memories together (e.g. session ID) |
| boolean | No | Whether Hydra DB should extract insights and build knowledge graph (default: true) |
| boolean | No | Whether the text is in markdown format (default: false) |
| array | No* | Conversation turns (each with a |
| string | No | Name of the user for personalisation, used with |
* Provide exactly one of text or turns.
hydradb_list
List stored memories or ingested knowledge sources in Hydra DB.
Parameter | Type | Required | Description |
| string | No | Which family to list: |
| array | No | For |
hydradb_inspect
Fetch the full content of a specific source by its source ID.
Parameter | Type | Required | Description |
| string | Yes | The source ID to fetch content for |
| string | No | Fetch mode: |
hydradb_delete
Delete a memory or knowledge source from Hydra DB by its ID. This action is irreversible.
Parameter | Type | Required | Description |
| string | Yes | The ID of the item to delete |
| string | No | Which family the ID belongs to: |
Related MCP server: MCP-Mem0
Configuration
Get Your Credentials
Get your Hydra DB API Key from Hydra DB
Get your database name from the Hydra DB dashboard
Environment Variables
Variable | Description | Default |
| Your Hydra DB API key | Required |
| Your Hydra DB database (tenant scope) | Required |
| Collection (sub-tenant) for partitioning |
|
| Base URL override |
|
| Log level: DEBUG, INFO, WARN, ERROR |
|
The legacy HYDRA_DB_* names — HYDRA_DB_API_KEY, HYDRA_DB_TENANT_ID,
HYDRA_DB_SUB_TENANT_ID, HYDRA_DB_BASE_URL, HYDRA_DB_LOG_LEVEL — remain
honoured as deprecated aliases (canonical wins when both are set; using an
alias prints a one-time warning naming its replacement).
Claude Desktop
{
"mcpServers": {
"hydradb": {
"command": "npx",
"args": ["-y", "@hydradb/mcp@latest"],
"env": {
"HYDRADB_API_KEY": "your-api-key",
"HYDRADB_DATABASE": "your-database"
}
}
}
}Cursor & Windsurf
Client | Config File |
Cursor |
|
Windsurf |
|
{
"mcpServers": {
"hydradb": {
"command": "npx",
"args": ["-y", "@hydradb/mcp@latest"],
"env": {
"HYDRADB_API_KEY": "your-api-key",
"HYDRADB_DATABASE": "your-database"
}
}
}
}VS Code
Add to .vscode/mcp.json:
{
"servers": {
"hydradb": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@hydradb/mcp@latest"],
"env": {
"HYDRADB_API_KEY": "your-api-key",
"HYDRADB_DATABASE": "your-database"
}
}
}
}Custom Sub-Tenant
To partition data, set the HYDRADB_COLLECTION environment variable:
{
"mcpServers": {
"hydradb": {
"command": "npx",
"args": ["-y", "@hydradb/mcp@latest"],
"env": {
"HYDRADB_API_KEY": "your-api-key",
"HYDRADB_DATABASE": "your-database",
"HYDRADB_COLLECTION": "my-project"
}
}
}
}How It Works
The server talks to Hydra DB through the generated @hydradb/sdk
(pinned exactly), behind a thin hand-owned wrapper in src/hydra. The wrapper
owns scope injection, envelope unwrapping and error translation; the tools call
it and render the results.
hydradb_query retrieves relevant memories and returns graph-enriched context (entity paths, chunk relations, extra context). Supports
fastandthinkingrecall modes.hydradb_ingest stores a note (
text) or a conversation (turns) as a memory, with configurableinfer,is_markdown,title, andsource_id. Hydra DB extracts insights and builds a knowledge graph automatically.hydradb_list browses stored memories (
kind: memory) or ingested knowledge sources (kind: knowledge, with an optionalsource_idsfilter).hydradb_inspect retrieves the original ingested content of a source, with mode options (
content,url, orboth).hydradb_delete removes a memory or knowledge source by ID.
Development
npm ci
npm run build
HYDRADB_API_KEY=your-key HYDRADB_DATABASE=your-database npm startFor development with auto-reload:
HYDRADB_API_KEY=your-key HYDRADB_DATABASE=your-database npm run devTesting
# unit + conformance tests (wrapper driven against a mocked SDK transport)
npm test
# just the shared conformance vectors
npm run test:conformance
# live integration test against Hydra DB (drives the wrapper end to end)
RUN_LIVE_TESTS=true HYDRADB_API_KEY=your-key HYDRADB_DATABASE=your-database npm run test:integrationTroubleshooting
API Key Issues: Ensure
HYDRADB_API_KEYis set correctlyConnection Errors: Check your internet connection and API key validity
Tool Not Found: Make sure the package is installed and the command path is correct
Debug Logging: Set
HYDRADB_LOG_LEVEL=DEBUGfor verbose output
Contributing / Developer Setup
Get up and running quickly with the bootstrap script:
git clone https://github.com/usecortex/hydradb-mcp.git
cd hydradb-mcp
make bootstrapThis will install dependencies, build the project, and create a .env file from .env.example. Edit .env with your HydraDB credentials, then:
make dev # Start MCP server in dev mode (auto-reload)
make test # Run unit tests
make test-all # Run unit + integration tests
make check-types # Type-check without emittingRun make help to see all available targets.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
Flicense-quality-maintenanceProvides local-first memory storage and retrieval with automatic embedding, vector search, and knowledge graph capabilities. Enables agents to store memories locally and retrieve relevant context through hybrid search with optional Neo4j graph traversal.Last updated- -license-quality-maintenanceProvides AI agents with persistent long-term memory capabilities using semantic search. Enables storing, retrieving, and searching memories through three core tools integrated with Mem0 and vector storage.Last updated

Memsolus MCP Serverofficial
AlicenseAqualityDmaintenanceProvides persistent long-term memory for AI agents through semantic search and automated knowledge graph extraction. It enables agents to store, recall, and reason over facts, preferences, and relationships across multiple conversations and sessions.Last updated1429MIT- Alicense-qualityCmaintenanceEnables storing, searching, and compressing contextual memories for LLM interactions, with tools for memory management and context injection.Last updated9MIT
Related MCP Connectors
Universal memory for AI agents and tools. Save, organize and search context anywhere.
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Persistent memory for AI agents. Search, store, and recall across sessions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/usecortex/hydradb-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server