KosmoKrator

productivity

Gravity Forms MCP Integration for Claude Agent SDK

Connect Gravity Forms to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write API key auth

Connect Gravity Forms to Claude Agent SDK

Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server.

Add a KosmoKrator stdio MCP server to the Claude Agent SDK options. The gateway is local, scoped to this integration, and starts with --write=deny so Claude Agent SDK can inspect read-capable tools without receiving write access by default.

Gravity Forms MCP Config for Claude Agent SDK

Use a narrow integration list so the agent does not load unrelated tools.

{
  "mcpServers": {
    "kosmokrator-gravity": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=gravity",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=gravity --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Gravity Forms instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Gravity Forms Tools Visible to Claude Agent SDK

Claude Agent SDK sees stable MCP tool names generated from the Gravity Forms integration catalog.

MCP toolSource functionTypeDescription
integration__gravity__gravity_list_forms gravity.gravity_list_forms Read List forms available in Gravity with optional pagination.
integration__gravity__gravity_get_form gravity.gravity_get_form Read Get details for a specific Gravity form.
integration__gravity__gravity_submit_form gravity.gravity_submit_form Write Submit a Gravity form with field values.
integration__gravity__gravity_list_submissions gravity.gravity_list_submissions Read List submissions for a specific Gravity form.
integration__gravity__gravity_list_entries gravity.gravity_list_entries Read List entries for a specific Gravity form.
integration__gravity__gravity_get_entry gravity.gravity_get_entry Read Get details for a specific Gravity entry.
integration__gravity__gravity_get_current_user gravity.gravity_get_current_user Read Get profile information for the authenticated Gravity user.

Related Gravity Forms Pages