Quick Install
claude with your MCP client: cursor, windsurf, vscode, etc.
Manual Configuration
Add to your MCP client config:/.well-known/oauth-protected-resource and prompt you to authenticate.
API Key Authentication (Alternative)
If you prefer API keys over OAuth, get one from app.supermemory.ai and pass it in theAuthorization header:
sm_ and skip OAuth when provided.
Project Scoping
Scope all operations to a specific project withx-sm-project:
Tools
memory
Save or forget information about the user.
| Parameter | Type | Required | Description |
|---|---|---|---|
content | string | Yes | The memory content to save or forget |
action | "save" | "forget" | No | Default: "save" |
containerTag | string | No | Project tag to scope the memory |
recall
Search memories and get user profile.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search query to find relevant memories |
includeProfile | boolean | No | Include user profile summary. Default: true |
containerTag | string | No | Project tag to scope the search |
whoAmI
Get the current logged-in user’s information. Returns { userId, email, name, client, sessionId }.
Resources
| URI | Description |
|---|---|
supermemory://profile | User profile with stable preferences and recent activity |
supermemory://projects | List of available memory projects |
Prompts
context
Inject user profile and preferences as system context for AI conversations. Returns a formatted message with the user’s stable preferences and recent activity.
You can access this in Cursor and Claude Code by just doing /context, which will give the LLMs just enough context to use and query supermemory more.
Purpose: Unlike the recall tool (which searches for specific information) or the profile resource (which returns raw data), the context prompt provides a pre-formatted system message designed for context injection at the start of conversations.
| Parameter | Type | Required | Description |
|---|---|---|---|
containerTag | string | No | Project tag to scope the profile (max 128 chars) |
includeRecent | boolean | No | Include recent activity in the profile. Default: true |
- Includes instructions to save new memories using the
memorytool - Stable Preferences: Long-term user facts and preferences
- Recent Activity: Recent interactions and context (when
includeRecentistrue) - Fallback message when no profile exists yet
- Use
contextprompt for automatic system context injection at conversation start - Use
recalltool when you need to search for specific information - Use
profileresource when you need raw profile data for custom processing
MCP Server Source Code
View the open-source implementation