Imagine With Craft

How to Connect Craft to Antigravity with MCP

Step-by-step guide to connect Craft documents to Antigravity via MCP. Read, search, and update your notes directly from Antigravity.

Craft
Antigravity

Enabling MCP for Documents

First, you have to enable MCP in order for Craft to setup an MCP server for your documents. Then, you use the MCP URL to connect to the server from Antigravity.

Step 1

Open the “Imagine” tab

Step 2

Click “Create Your First MCP Connection”

Step 3

Configure your MCP connection with a name.

Step 4

Click “Add Document” to select which documents this MCP connection has access to.

Step 5

The MCP URL that will be used to interact with your document is now displayed at the top.

Adding an MCP Connector in Antigravity

Create a new connector in Antigravity and use the MCP URL to connect the two services.

Step 1

Öffnen Sie in Antigravity die Befehlspalette (Cmd/Ctrl+Shift+P), geben Sie "mcp" ein und wählen Sie "Antigravity: Manage MCP Servers".

Step 2

Klicken Sie im MCP-Server-Manager auf „Rohkonfiguration anzeigen“, um die Konfigurationsdatei mcp_config.json zu öffnen.

Step 3

Kopieren Sie die folgende MCP-Konfiguration und fügen Sie sie in die Datei mcp_config.json ein. Ersetzen Sie <your-mcp-url> durch die oben erstellte MCP-URL.
{ "mcpServers": { "craft": { "serverUrl": "<your-mcp-url>" } } }

Step 4

Speichern Sie die Datei und kehren Sie zum MCP-Server-Manager zurück. Der Craft MCP-Server sollte nun mit allen aktivierten Tools angezeigt werden.

You can now ask Antigravity about your documents, and even have them updated. Try something like this to get started:

Click an example to copy the prompt to your clipboard

Some Ideas to Get You Started

Browse Examples