DogearAI
DocsBlogPricingSign inGet started

Connect Claude Code

Add DogearAI as an MCP server in Claude Code so it can save and recall your long-term context across sessions and projects.

Before you start

  • A DogearAI account — sign up free if you don't have one.
  • An access token from your dashboard (see Quickstart, step 2). It starts with dg_.
  • Claude Code installed and working in your terminal.

Add the MCP server

Run this in your terminal, replacing dg_your_token with your real token:

claude mcp add --transport http dogear \
  https://www.dogearai.com/mcp \
  --header "Authorization: Bearer dg_your_token"

This registers a server named dogear. Add --scope user if you want it available in every project rather than just the current one.

Verify the connection

List your MCP servers to confirm it's connected:

claude mcp list

You should see dogear marked as connected. Inside a Claude Code session, the DogearAI tools (save and recall memory) are now available — Claude will use them on its own when context is worth keeping or looking up.

Alternative: project config file

Prefer to commit the config? Create a .mcp.json file in your project root:

{
  "mcpServers": {
    "dogear": {
      "type": "http",
      "url": "https://www.dogearai.com/mcp",
      "headers": {
        "Authorization": "Bearer dg_your_token"
      }
    }
  }
}

Don't commit a real token to a shared repo. Use a personal token, or keep .mcp.json out of version control.

Use it

Just talk to Claude normally. Tell it something worth remembering — "Remember our API returns snake_case and we never touch the DB directly" — and it saves to DogearAI. In a later session, ask something that needs that context and Claude recalls it instead of asking you again. You can review everything from your dashboard.

Troubleshooting

  • 401 / unauthorized: the token is wrong or was revoked. Generate a new one in the dashboard and re-add the server.
  • Server not showing up: restart Claude Code after adding it, then run claude mcp list again.
  • Client without HTTP transport: use the stdio bridge instead — npx mcp-remote https://www.dogearai.com/mcp --header "Authorization: Bearer dg_your_token".

Still stuck? Contact us and we'll help.