Skip to content

Connect Claude Code

You need a token and the address of your server:

  • hosted: https://lalabase.com/api/mcp
  • self-hosted: https://lalabase.example.com/api/mcp, with your own domain

Add the server

claude mcp add --transport http lalabase https://lalabase.com/api/mcp \
  --header "Authorization: Bearer your-token"

By default the entry applies to the current folder only. With --scope user, Lalabase is available in all your projects:

claude mcp add --scope user --transport http lalabase https://lalabase.com/api/mcp \
  --header "Authorization: Bearer your-token"
Do not commit the token

With --scope project the entry ends up in a file in the repository. Do not put a token there in plain text.

Check the connection

claude mcp list

lalabase should show as connected. Then ask in Claude Code:

Which Lalabase projects can you reach?

The agent calls list_projects and names the projects your token sees. If the list stays empty or an error comes back, see troubleshooting.

Replace the token

A token expires after 90 days at the latest. Enter the new one like this:

claude mcp remove lalabase
claude mcp add --transport http lalabase https://lalabase.com/api/mcp \
  --header "Authorization: Bearer your-new-token"

remove finds the entry by itself, but add creates it for the current folder only again. If you used --scope user before, pass it to the new add as well.

What next