# Claude Code

> Add Sinapsi to Claude Code with one command — public wikis with no key, your private spaces with a token or OAuth.

Source: https://sinapsi.wiki/docs/claude-code/

## Public wikis

```bash
claude mcp add --transport http sinapsi https://sinapsi.wiki/mcp/hub/
```

Or a single wiki:

```bash
claude mcp add --transport http sinapsi-prediction-markets https://sinapsi.wiki/mcp/w/prediction-markets/
```

The command applies to the current project folder (scope `local`). Add `-s user` to make it available in every project.

## Your private spaces

In the app, open **Spaces → "Build a wiki with your assistant" → Generate command**: it gives you the full command with your token, ready to paste. It looks like this:

```bash
claude mcp add --transport http sinapsi https://sinapsi.wiki/mcp/ \
  --header "Authorization: Bearer $SINAPSI_TOKEN"
```

If you skip the header, run `/mcp` inside Claude Code to sign in with OAuth.

## Check it works

Run `/mcp` and look for `sinapsi` with its tools, then ask: *"Using Sinapsi, list the public wikis."*
