MCP API reference
Endpoint
URL: https://simplemem.com/api/mcp
Transport: Streamable HTTP (request/response over POST)
Auth: OAuth 2.1 sign-in (see below), or Authorization: Bearer YOUR_ACCESS_KEY
Compatibility: Clients may probe with GET; simplemem returns 405 to decline the optional server-initiated listening stream.
OAuth (recommended for Claude.ai and ChatGPT)
Apps that support remote MCP sign-in only need the URL https://simplemem.com/api/mcp. The app opens a simplemem page, you sign in with Google and click Allow. No access key to copy. Approved apps are listed under Connected Apps in your dashboard, where you can revoke them.
For client developers, simplemem follows the MCP authorization spec:
- Unauthenticated requests get
401withWWW-Authenticate: Bearer resource_metadata="https://simplemem.com/.well-known/oauth-protected-resource". - Protected resource metadata (RFC 9728):
/.well-known/oauth-protected-resourceand/.well-known/oauth-protected-resource/api/mcp. - Authorization server metadata (RFC 8414):
/.well-known/oauth-authorization-server. Issuerhttps://simplemem.com. - Clients identify themselves with a Client ID Metadata Document (an https
client_id) or register through Dynamic Client Registration at/api/oauth/register. - Authorization code flow with PKCE (
S256only) and theresourceparameter (RFC 8707). One scope:memories(read and write). - Access tokens last 1 hour. Refresh tokens last 90 days and rotate on every use. Revocation (RFC 7009) at
/api/oauth/revoke. - Send access tokens only in the
Authorization: Bearerheader.
Access keys keep working exactly as before for tools that use headers, such as Cursor or Claude Code.
Supported JSON-RPC methods
initializereturns server metadata and tool capabilities.pingreturns an empty success result.tools/listreturns the memory tools below.tools/callexecutes a named memory tool.resources/listandprompts/listreturn empty lists.
Memory tools
Every tool has a title and MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint: false) so clients can show accurate approval prompts.
add_memory
Saves one atomic memory and returns its ID. Requires content as a non-empty string.
Annotations: not read-only, not destructive, not idempotent.
update_memory
Replaces an existing memory. Requires its id and the complete new content.
Annotations: destructive (overwrites content), idempotent.
get_memories
Returns the authenticated user's memories, newest first, as a JSON array of { id, content, source? }.
Optional query: case-insensitive keywords; a memory matches when it contains every word. Optional limit: 1 to 200, default 100.
When results are filtered or cut off, a second text block says so, e.g. Showing 100 of 812 memories (newest first).
Annotations: read-only, not destructive, idempotent.
delete_memory
Deletes a memory by ID. Requires id.
Annotations: destructive, idempotent.
Example tool call
POST /api/mcp
Authorization: Bearer YOUR_ACCESS_KEY
Content-Type: application/json
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "add_memory",
"arguments": {
"content": "User prefers TypeScript for new projects."
}
}
}