Hydra DB MCP Server
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
hydra_db_search
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) |
hydra_db_store
Save important information to Hydra DB memory. Hydra DB automatically extracts insights, preferences, and builds a knowledge graph from the stored content. Supports plain text and markdown.
Parameter | Type | Required | Description |
| string | Yes | 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) |
hydra_db_ingest_conversation
Ingest user-assistant conversation turns into Hydra DB memory. Hydra DB extracts insights, preferences, and knowledge graph entities from the conversation.
Parameter | Type | Required | Description |
| array | Yes | Array of conversation turns, each with a |
| string | Yes | Source identifier to group all turns from the same session together |
| string | No | Name of the user for personalisation (default: |
hydra_db_list_memories
List all stored user memories in Hydra DB. Returns memory IDs and their content. No parameters required.
hydra_db_delete_memory
Delete a specific user memory from Hydra DB by its memory ID. This action is irreversible.
Parameter | Type | Required | Description |
| string | Yes | The ID of the memory to delete |
hydra_db_fetch_content
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: |
hydra_db_list_sources
List all ingested sources in Hydra DB memory. Returns source IDs, titles, types, and metadata.
Parameter | Type | Required | Description |
| array | No | Array of specific source IDs to filter by. If omitted, lists all sources |
Related MCP server: MCP-Mem0
Configuration
Get Your Credentials
Get your Hydra DB API Key from Hydra DB
Get your Tenant ID from the Hydra DB dashboard
Environment Variables
Variable | Description | Default |
| Your Hydra DB API key | Required |
| Your Hydra DB tenant identifier | Required |
| Sub-tenant for data partitioning |
|
| Log level: DEBUG, INFO, WARN, ERROR |
|
Claude Desktop
{
"mcpServers": {
"hydradb": {
"command": "npx",
"args": ["-y", "@hydradb/mcp@latest"],
"env": {
"HYDRA_DB_API_KEY": "your-api-key",
"HYDRA_DB_TENANT_ID": "your-tenant-id"
}
}
}
}Cursor & Windsurf
Client | Config File |
Cursor |
|
Windsurf |
|
{
"mcpServers": {
"hydradb": {
"command": "npx",
"args": ["-y", "@hydradb/mcp@latest"],
"env": {
"HYDRA_DB_API_KEY": "your-api-key",
"HYDRA_DB_TENANT_ID": "your-tenant-id"
}
}
}
}VS Code
Add to .vscode/mcp.json:
{
"servers": {
"hydradb": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@hydradb/mcp@latest"],
"env": {
"HYDRA_DB_API_KEY": "your-api-key",
"HYDRA_DB_TENANT_ID": "your-tenant-id"
}
}
}
}Custom Sub-Tenant
To partition data, set the HYDRA_DB_SUB_TENANT_ID environment variable:
{
"mcpServers": {
"hydradb": {
"command": "npx",
"args": ["-y", "@hydradb/mcp@latest"],
"env": {
"HYDRA_DB_API_KEY": "your-api-key",
"HYDRA_DB_TENANT_ID": "your-tenant-id",
"HYDRA_DB_SUB_TENANT_ID": "my-project"
}
}
}
}How It Works
hydra_db_search queries
POST /recall/recall_preferencesfor relevant memories and returns graph-enriched context (entity paths, chunk relations, extra context). Supportsfastandthinkingrecall modes.hydra_db_store sends text to
POST /memories/add_memorywith configurableinfer,upsert,is_markdown,title, andsource_idoptions. Hydra DB extracts insights and builds a knowledge graph automatically.hydra_db_ingest_conversation sends user-assistant pairs to
POST /memories/add_memoryas conversation turns, grouped bysource_id.hydra_db_list_memories queries
POST /list/data(kind:memories) to browse stored memories.hydra_db_list_sources queries
POST /list/data(kind:knowledge) to browse ingested sources, with optionalsource_idsfilter.hydra_db_delete_memory calls
DELETE /memories/delete_memoryto remove a specific memory.hydra_db_fetch_content calls
POST /fetch/contentto retrieve the original ingested content, with mode options (content,url, orboth).
Development
npm ci
npm run build
HYDRA_DB_API_KEY=your-key HYDRA_DB_TENANT_ID=your-tenant npm startFor development with auto-reload:
HYDRA_DB_API_KEY=your-key HYDRA_DB_TENANT_ID=your-tenant npm run devTesting
# unit tests (mocked HTTP)
npm test
# live integration test against Hydra DB
RUN_LIVE_TESTS=true HYDRA_DB_API_KEY=your-key HYDRA_DB_TENANT_ID=your-tenant npm run test:integrationTroubleshooting
API Key Issues: Ensure
HYDRA_DB_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
HYDRA_DB_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.
This server cannot be installed
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
- 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