fivebar

OpenCode

Copy page
View Markdown
Open with
Connect MCP
Cursor VS Code

OpenCode can read your fivebar stats over MCP, and answer questions about them.

Ask it about your sites in your own words, such as why traffic jumped on Tuesday, and it answers from your figures, following fivebar’s rules about what they mean. Working in your site’s code, it can also add fivebar to it and check it’s working. Connecting is adding fivebar’s address, signing in and choosing Allow, with no key to copy.

Add fivebar

Run opencode mcp add and answer its questions, or add fivebar to ~/.config/opencode/opencode.json, or to opencode.json in a project:

{
  "mcp": {
    "fivebar": {
      "type": "remote",
      "url": "https://fiveb.ar/api/mcp"
    }
  }
}

Sign in

OpenCode asks you to sign in the first time it uses fivebar. To sign in yourself, run opencode mcp auth fivebar.

fivebar opens in your browser. Sign in if you need to, check that the page names OpenCode, and choose Allow. OpenCode can then read the stats of every site on your Sites page, and changes nothing of yours unless you also tick the box to let it change settings.

Try it

Ask OpenCode about your sites in your own words, such as:

Removing it

Delete fivebar from opencode.json. opencode mcp logout signs it out.

To stop OpenCode reading your stats from fivebar’s side, disconnect it in Settings.

More in OpenCode’s own documentation.