Skip to main content

Cursor Integration

Connect Hubify Labs to Cursor via the MCP server. This lets Cursor’s AI access your lab’s experiments, papers, and knowledge base directly within your IDE.

Setup

1

Install the CLI

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

Add to Cursor MCP config

Create or edit .cursor/mcp.json in your project root:
Find your CONVEX_URL and lab slug under Settings → Developer in the Hubify web app.
3

Restart Cursor

Restart Cursor to pick up the new MCP configuration. The Hubify tools will appear in Cursor’s tool palette.

Usage

In Cursor Chat

Open Cursor’s chat (Cmd+L) and ask questions about your lab:
Cursor will call the Hubify MCP tools and display results inline.

In Composer

When using Cursor Composer for multi-file edits, the Hubify context is available:
Cursor will fetch the experiment metadata via MCP and generate code that matches your actual data.

Inline Context

Reference Hubify resources with @ mentions:

Common Workflows

Tips

  • Use project-scoped MCP config (.cursor/mcp.json) so different projects connect to different labs
  • Combine Hubify MCP with other MCP servers (e.g., GitHub, filesystem) for a complete research IDE experience

Troubleshooting

Ensure the .cursor/mcp.json file is in your project root (not a subdirectory). Restart Cursor after adding it.
Run hubify mcp --health in your terminal to confirm the MCP server starts and resolves your lab. Check that CONVEX_URL and HUBIFY_LAB_SLUG are set in the env block.
The MCP server connects to your Convex deployment. Check that CONVEX_URL points to the correct deployment URL from Settings → Developer.