KosmoKrator

productivity

Motion MCP Integration for LangGraph

Connect Motion to LangGraph through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write Bearer token auth

Connect Motion to LangGraph

Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions.

Use a graph node that calls the KosmoKrator CLI for deterministic steps or an MCP client for dynamic tool selection. The gateway is local, scoped to this integration, and starts with --write=deny so LangGraph can inspect read-capable tools without receiving write access by default.

Motion MCP Config for LangGraph

Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Motion Tools Visible to LangGraph

LangGraph sees stable MCP tool names generated from the Motion integration catalog.

MCP toolSource functionTypeDescription
integration__motion__motion_list_tasks motion.motion_list_tasks Read List tasks from Motion with optional filters. Filter by status, project, or assignee. Supports cursor-based pagination.
integration__motion__motion_get_task motion.motion_get_task Read Get details of a specific task in Motion by its ID. Returns the task name, description, status, assignee, due date, priority, and project.
integration__motion__motion_create_task motion.motion_create_task Write Create a new task in Motion. Requires a task name. Optionally specify a project, assignee, due date, priority, and description. Motion will auto-schedule the task based on priorities and deadlines.
integration__motion__motion_list_projects motion.motion_list_projects Read List all projects in Motion. Returns project IDs, names, and other metadata. Use project IDs to filter tasks or create tasks in specific projects.
integration__motion__motion_get_project motion.motion_get_project Read Get details of a specific project in Motion by its ID. Returns the project name, description, status, and other metadata.
integration__motion__motion_list_schedules motion.motion_list_schedules Read List schedules from Motion within a date range. Returns scheduled tasks and events for the authenticated user.
integration__motion__motion_get_current_user motion.motion_get_current_user Read Get the profile of the currently authenticated Motion user. Returns user ID, name, email, and other account details.

Related Motion Pages