KosmoKrator

productivity

Gravity Forms MCP Integration for LangChain

Connect Gravity Forms to LangChain 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 LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Gravity Forms MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "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 LangChain

LangChain 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