Skip to main content

Claude Code Integration

Hubify Labs integrates natively with Claude Code, Anthropic’s CLI for Claude. The MCP server gives Claude Code direct access to your lab’s experiments, agents, papers, and knowledge base.

Setup

1

Install the CLI

Requires Node.js 18+ and hubify-labs 2.0.0+.
2

Configure Claude Code

Either run the one-liner:
Or add the environment variables and edit ~/.claude/mcp.json directly:
Find your CONVEX_URL and lab slug under Settings → Developer in the Hubify web app.
3

Verify

Start a new Claude Code session and ask:
Claude should call the experiment_list tool and return real data.

What You Can Do

With the MCP server connected, Claude Code can:

Workflow: Research from the Terminal

A typical Claude Code research session:

Using with the Hubify CLI

You can use both the Hubify CLI and Claude Code MCP server simultaneously. The CLI is best for quick commands, while Claude Code excels at complex multi-step workflows:

Best Practices

  • Set HUBIFY_LAB_SLUG in the MCP env block to keep the server anchored to your active lab
  • Use Claude Code for research analysis and paper writing (high-reasoning tasks)
  • Use the CLI for quick status checks and single commands