MCP Server
Connection Guide
How to connect your agent to HyperMemory
Connection Guide
This guide covers how to establish a connection between your AI agent and HyperMemory’s MCP server.
Connection details
| Property | Value |
|---|---|
| Server URL | https://api.hypermemory.io/mcp |
| Protocol | MCP over HTTP/SSE (Streamable HTTP) |
| Authentication | Bearer token (API key) |
Configuration by platform
- Claude Desktop
- OpenClaw
- Python (MCP Client)
- Node.js (MCP Client)
Add to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop after saving.
Verifying the connection
Test with a simple store/recall
-
Store a test memory:
Ask your agent: “Remember that the test connection was successful”
Expected: Agent calls
memory_storeand confirms -
Recall the memory:
Ask your agent: “What do you remember about the test connection?”
Expected: Agent calls
memory_recalland returns the stored memory
Check tool availability
If your agent doesn’t use memory tools, verify they’re listed:
- Python
- Node.js
Expected: 8 memory tools
Troubleshooting
401 Unauthorized
Cause: Invalid or missing API key
Fix:
- Verify your API key is correct (check for typos, extra spaces)
- Ensure the key hasn’t been revoked
- Check the Authorization header format:
Bearer YOUR_KEY(note the space)
❌ "BearerYOUR_KEY" # Missing space
❌ "bearer YOUR_KEY" # Lowercase
❌ "YOUR_KEY" # Missing "Bearer"
✅ "Bearer YOUR_KEY" # Correct
403 Forbidden
Cause: API key doesn’t have required scope
Fix:
- Check your key’s scopes in the dashboard
- Ensure the key has
memory:readandmemory:writescopes - Create a new key with the necessary permissions
429 Rate Limited
Cause: Too many requests in a short period
Fix:
- Implement exponential backoff
- Reduce request frequency
- Upgrade to a higher plan for increased limits
Connection timeout
Cause: Network issues or firewall blocking
Fix:
- Verify you can reach
api.hypermemory.iofrom your network - Check if a proxy is required
- Ensure port 443 (HTTPS) is open
Tools not appearing
Cause: MCP handshake didn’t complete
Fix:
- Restart your agent/client
- Verify the server URL is exactly
https://api.hypermemory.io/mcp - Check for error messages in your agent’s logs
Environment variables
We recommend storing your API key in an environment variable:
- macOS/Linux
- Windows
Add to ~/.bashrc or ~/.zshrc for persistence.
Then reference in your configuration:
{
"headers": {
"Authorization": "Bearer ${HYPERMEMORY_API_KEY}"
}
}