# Claude Code

Claude Code can use Memside as a remote MCP server for project continuity. The
connection lets Claude Code load selected Memories, checkpoints, Operating
Rules, and other saved context before planning, editing, or reviewing code.

The setup uses the Claude Code CLI and a Memside API key.

## Before starting

1. Install Claude Code and confirm that the `claude` command works.
2. Sign in to Memside.
3. Open **Settings > Developer & API**.
4. Create an API key and copy it when shown.

## Choose the connection scope

- Use project scope when Memside is needed only for the current project.
- Use user scope when Memside should be available across Claude Code projects.

## Add Memside to the current project

Open a terminal in the project folder and run:

```bash
claude mcp add --transport http --header "Authorization: Bearer mem_sk_example_key" memside https://api.memside.com/mcp/
```

## Add Memside for all projects

Run the same command with user scope:

```bash
claude mcp add --transport http --scope user --header "Authorization: Bearer mem_sk_example_key" memside https://api.memside.com/mcp/
```

## Confirm the connection

1. Run `claude mcp list`.
2. Open Claude Code.
3. Use `/mcp` to check the server status when needed.

Claude Code stores local or user-scope servers in `~/.claude.json`. Project
servers are stored in `.mcp.json` at the project root.

Start with a read-only request:

```text
Use Memside to load the current checkpoint before proposing changes.
```

## Troubleshooting

- Run `claude mcp list` and confirm that `memside` is present.
- Use `/mcp` to inspect the connection state.
- Confirm that the API key is active and the URL ends with `/mcp/`.
- Remove and add the server again if the stored configuration is incorrect.

Memside uses remote HTTP. Local Windows guidance for `npx`-based standard input
and output servers does not apply to this connection.

## Next steps

- [Claude](/connect/claude/)
- [API keys](/developers/api-keys/)
- [Troubleshooting](/help/troubleshooting/)
