Skip to content

Connect Cursor

Add Wexa to Cursor’s MCP servers and the agent gains access to your Fabric context tools.

First, get your MCP credentials: your MCP Server URL, workspace ID (ws_<your_project>), and an API key (fab_sk_…).

  1. Open Cursor → Settings → MCP → Add new server.
  2. Paste the configuration below into ~/.cursor/mcp.json and drop in your API key and workspace ID.
  3. Reload — Wexa context tools are now available to the agent.
~/.cursor/mcp.json
{
"mcpServers": {
"wexa-context": {
"url": "https://mcp.wexa.ai/v1/sse",
"headers": {
"Authorization": "Bearer <YOUR_API_KEY>",
"X-Wexa-Workspace": "ws_<your_project>"
}
}
}
}

The Cursor client view in Simple Mode showing the ~/.cursor/mcp.json block.

In Cursor’s chat, ask a question grounded in your data. The agent calls Fabric’s query-context tool and answers from your context graph — scope-pinned and audited.

  • Tools don’t appear — reload Cursor after editing mcp.json, and validate the JSON.
  • 401 / unauthorized — check the API key and the Bearer prefix.
  • 403 / wrong scope — the X-Wexa-Workspace value must match a project your key can access.