productivity
Motion MCP Integration for LangChain
Connect Motion to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Motion 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.
Motion MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"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
Expose only Motion instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Motion Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the Motion integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
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. |