Skip to content

Getting started

Client setup

Copy-ready MemoTune MCP configuration for Claude Code, Cursor, Codex, VS Code and any client that supports remote HTTP servers.

Any MCP client that supports remote HTTP servers with a custom Authorization header can connect to MemoTune. The examples below use YOUR_API_KEY or an environment variable named MEMOTUNE_API_KEY. Create the key in Settings → API Keys.

After changing a configuration, restart or reload the client so it picks up the new server.

Claude Code

Add the server from a terminal. --scope user makes it available in every project; leave it out to add it only to the current project.

bash
claude mcp add --transport http --scope user memotune https://memotune.com/api/mcp --header "Authorization: Bearer YOUR_API_KEY"

To share a project configuration without committing the key, put this in .mcp.json and set MEMOTUNE_API_KEY in your shell:

json
{
  "mcpServers": {
    "memotune": {
      "type": "http",
      "url": "https://memotune.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${MEMOTUNE_API_KEY}"
      }
    }
  }
}

Run /mcp inside Claude Code to confirm that memotune is connected. See the Claude Code MCP documentation.

Cursor

Add this to ~/.cursor/mcp.json for all projects, or .cursor/mcp.json for one project:

json
{
  "mcpServers": {
    "memotune": {
      "url": "https://memotune.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${env:MEMOTUNE_API_KEY}"
      }
    }
  }
}

Then open Cursor Settings → MCP and check that the server is enabled. See the Cursor MCP documentation.

Codex

Add this to ~/.codex/config.toml and export MEMOTUNE_API_KEY in the environment that starts Codex:

toml
[mcp_servers.memotune]
url = "https://memotune.com/api/mcp"
bearer_token_env_var = "MEMOTUNE_API_KEY"

See the Codex MCP documentation.

VS Code

Add this to .vscode/mcp.json. VS Code asks for the key the first time the server starts and stores it securely:

json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "memotune-api-key",
      "description": "MemoTune API key",
      "password": true
    }
  ],
  "servers": {
    "memotune": {
      "type": "http",
      "url": "https://memotune.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${input:memotune-api-key}"
      }
    }
  }
}

See the VS Code MCP documentation.

Other clients

Use these values in any client that supports remote MCP servers:

SettingValue
TransportStreamable HTTP
URLhttps://memotune.com/api/mcp
HeaderAuthorization: Bearer YOUR_API_KEY

The server is stateless and answers every request with JSON. It does not use OAuth, sessions or SSE streams, and it only accepts POST requests. Clients that can only sign in with OAuth are not supported.