MCP Server
Model Context ProtocolConnect MemoAir directly to AI assistants like Claude Desktop and Cursor using the Model Context Protocol (MCP). Your AI assistant gains persistent memory that survives across conversations.
What is MCP?
The Model Context Protocol is an open standard that allows AI assistants to connect to external tools and data sources. MemoAir's MCP server gives your AI assistant the ability to search, save, and manage memories.
Benefits: Your AI remembers your preferences, past conversations, and important information across all sessions.
Prerequisites
- Node.js 18+ installed
- A MemoAir API Key (get one from your dashboard)
- Claude Desktop or Cursor IDE
Installation
The MCP server can be run directly with npx (no installation required):
1npx @memoair/mcp-serverOr install globally:
1npm install -g @memoair/mcp-serverConfigure Claude Desktop
Add MemoAir to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
1{2 "mcpServers": {3 "memoair": {4 "command": "npx",5 "args": ["@memoair/mcp-server"],6 "env": {7 "MEMOAIR_API_KEY": "your-api-key-here",8 "MEMOAIR_USER_ID": "your-user-id"9 }10 }11 }12}Replace your-api-key-here with your actual API key from the dashboard.
Configure Cursor
Add MemoAir to your Cursor MCP configuration:
1{2 "mcpServers": {3 "memoair": {4 "command": "npx",5 "args": ["@memoair/mcp-server"],6 "env": {7 "MEMOAIR_API_KEY": "your-api-key-here",8 "MEMOAIR_USER_ID": "your-user-id"9 }10 }11 }12}Available Tools
Once connected, your AI assistant has access to these memory tools:
Example Conversation
Here's how your AI assistant uses MemoAir:
"Remember that I prefer TypeScript over JavaScript for new projects."
I'll save that preference for you.
"Help me set up a new web project."
Based on your preferences, I'll set this up with TypeScript...
Environment Variables
| Variable | Required | Description |
|---|---|---|
| MEMOAIR_API_KEY | Required | Your MemoAir API key |
| MEMOAIR_USER_ID | Optional | User ID for memory isolation (defaults to API key owner) |
| MEMOAIR_API_BASE | Optional | API base URL (for self-hosted instances) |
Troubleshooting
MCP server not appearing in Claude
Restart Claude Desktop after editing the config file. Check the logs at ~/Library/Logs/Claude/ for errors.
Authentication errors
Verify your API key is correct and hasn't expired. Generate a new key from the dashboard if needed.
Tools not working
Ensure Node.js 18+ is installed. Run node --version to check.