KosmoKrator

analytics

SpeedCurve MCP Integration for LangChain

Connect SpeedCurve 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 SpeedCurve 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.

SpeedCurve MCP Config for LangChain

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

Expose only SpeedCurve 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.

SpeedCurve Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the SpeedCurve integration catalog.

MCP toolSource functionTypeDescription
integration__speedcurve__speedcurve_list_sites speedcurve.speedcurve_list_sites Read List all monitored sites in SpeedCurve. Returns site IDs, names, and URLs that you can use to query test results.
integration__speedcurve__speedcurve_get_site speedcurve.speedcurve_get_site Read Get detailed information about a specific SpeedCurve site, including its URLs, test settings, and latest test results.
integration__speedcurve__speedcurve_list_tests speedcurve.speedcurve_list_tests Read List recent synthetic test results from SpeedCurve. Optionally filter by site, browser, or region.
integration__speedcurve__speedcurve_get_test speedcurve.speedcurve_get_test Read Get detailed results for a specific SpeedCurve synthetic test run, including Core Web Vitals, filmstrip data, and waterfall metrics.
integration__speedcurve__speedcurve_list_deployments speedcurve.speedcurve_list_deployments Read List recent deployments in SpeedCurve and their performance impact. Shows how each deploy affected Core Web Vitals and load times.
integration__speedcurve__speedcurve_create_deployment speedcurve.speedcurve_create_deployment Write Register a new deployment in SpeedCurve to trigger synthetic performance tests. Use this when deploying code changes to track their performance impact.
integration__speedcurve__speedcurve_get_current_user speedcurve.speedcurve_get_current_user Read Get details about the currently authenticated SpeedCurve user. Useful for verifying API credentials and checking account information.

Related SpeedCurve Pages