Motion MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Motion MCP Server create a task 'Fix login bug' in the Website Redesign project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Motion MCP Server
A production-ready MCP (Model Context Protocol) Server that integrates with Motion (usemotion.com) task management platform. This server enables AI assistants to manage projects and tasks through Motion's API while maintaining local context in .claude/motion/ directory using markdown files.
Features
π― Core Functionality
Full Motion API Integration: Projects, tasks, workspaces, users, comments
Local Storage: Markdown-based task files with YAML frontmatter
Bidirectional Sync: Keep local and remote data in sync with conflict resolution
Rate Limited: Respects Motion's API limits (12/min individual, 120/min team)
π€ AI-Powered Features
Task Enrichment: AI-enhanced descriptions and acceptance criteria
Goal Breakdown: Convert high-level goals into actionable task lists
Workflow Planning: Generate comprehensive project plans
Status Reports: Automated progress summaries
π MCP Resources
Project Overviews: Real-time project status and metrics
Task Files: Individual task details as markdown resources
Documentation: Project docs accessible through MCP
AI Prompts: Templates for task planning and reporting
Related MCP server: Motion MCP Server
Installation
Prerequisites
Node.js 18+ and npm
Motion account with API key
Claude Desktop (for MCP integration)
Setup
Clone and Install
git clone https://github.com/idxstudios/use-motion-mcp-server.git
cd use-motion-mcp-server
npm installConfigure Environment
# Copy example environment file
cp .env.example .env
# Edit .env with your Motion API key
MOTION_API_KEY=your_motion_api_key_here
MOTION_IS_TEAM_ACCOUNT=false # true for team accountsBuild the Server
# Generate OpenAPI routes first (required for first build)
make openapi
# Full build with OpenAPI generation + TypeScript compilation
make build
# OR for TypeScript compilation only (after OpenAPI generated)
npm run buildConfigure Claude Desktop Edit your
claude_desktop_config.json:
{
"mcpServers": {
"motion": {
"command": "node",
"args": ["/absolute/path/to/motion-mcp-server/dist/server/index.js"],
"env": {
"MOTION_API_KEY": "your-motion-api-key"
}
}
}
}Architecture
The server follows a Domain Controllers β App (Commands/Queries) β Services pattern with Functional/Reactive Programming (FRP) principles:
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
βDomain ControllersβββββΆβ App Layer βββββΆβ Services β
β (MCP Handlers) β β Commands/Queriesβ β Motion/Storage β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββποΈ Directory Structure
src/
βββ api/mcp/v1-routes/ # Generated OpenAPI code
β βββ models/ # Generated TypeScript interfaces
β βββ routes/ # Generated controller interfaces
β βββ tools.ts # Generated MCP tool schemas
βββ api/mcp/v1-controllers/# Domain controller implementations
β βββ project-controller.ts
β βββ task-controller.ts
β βββ workflow-controller.ts
β βββ sync-controller.ts
β βββ context-controller.ts
β βββ docs-controller.ts
βββ app/ # Business logic layer
β βββ motion/ # Motion API commands & queries
β βββ projects/ # Project commands & queries
β βββ tasks/ # Task commands & queries
β βββ workflow/ # Workflow planning
β βββ sync/ # Synchronization logic
β βββ context/ # Context management
β βββ docs/ # Documentation generation
βββ services/ # External service integrations
β βββ motion-service.ts # Motion API client
β βββ storage/ # Local file management
β βββ ai/ # AI enhancements
βββ setup/ # Configuration and DI
β βββ dependencies.ts # Dependency injection
βββ server/index.ts # MCP server entry pointπ§ OpenAPI-Based Code Generation
Tools and interfaces are generated from YAML schemas:
Define tools in
schemas/mcp/v1/mcp-tools.yamlCustom Handlebars templates in
schemas/api-gen/server/Generated code in
src/api/mcp/v1-routes/Run
make openapito regenerate
Available Tools
π Project Management
motion.project.list- List all projects with paginationmotion.project.create- Create new projectsmotion.project.bind- Bind project to local storagemotion.project.sync- Sync project with Motion
β Task Operations
motion.task.create- Create tasks (with AI enrichment)motion.task.list- List and filter tasksmotion.task.search- Search tasks in local storagemotion.task.update- Update task propertiesmotion.task.complete- Mark tasks as completed
π€ AI Features
motion.task.enrich- AI-enhance task descriptionsmotion.task.batch_create- Create multiple tasks from goalsmotion.task.analyze- Analyze task complexitymotion.workflow.plan- Generate comprehensive plans
π Sync & Context
motion.sync.all- Sync all bound projectsmotion.sync.check- Check sync statusmotion.context.save- Save project context for AImotion.context.load- Load project context
π Documentation
motion.docs.create- Generate project documentationmotion.docs.update- Update existing docsmotion.status.report- Generate status reports
π’ Workspace Management
motion.workspace.list- List all available workspacesmotion.workspace.set_default- Set default workspace for new projectsmotion.workspace.get_settings- Get workspace-specific settingsmotion.workspace.update_settings- Update workspace preferences
Local Storage Structure
The server maintains local context in .claude/motion/:
.claude/motion/
βββ workspace-settings/
β βββ default.json # Default workspace configuration
β βββ [workspace-id].json # Workspace-specific settings
βββ [project-id]/
βββ meta.json # Project metadata
βββ tasks/
β βββ [task-id].md # Task files with YAML frontmatter
βββ docs/
βββ *.md # Project documentationTask File Format
---
id: task_123
projectId: proj_456
status: In Progress
priority: HIGH
duration: 120
# ... other metadata
---
# Task Title
## Description
Detailed task description...
## Acceptance Criteria
- [ ] Criteria 1
- [ ] Criteria 2Workspace Settings Format
{
"workspaceId": "workspace_123",
"defaultProjectId": "project_456",
"defaultPriority": "MEDIUM",
"defaultDuration": 60,
"aiProvider": "openai"
}Development
π οΈ Build Commands (Make)
make help # Show all available commands
make install # Install dependencies
make build # Build the project
make test # Run tests
make lint # Run linter
make dev # Start development server
make check # Run all quality checks
make docker-build # Build Docker imageπ Testing
# Run all tests
npm test
# Run with coverage
npm run test:coverage
# Run specific test files
npm test -- --testPathPattern=tasksπ Monitoring
The server includes comprehensive error handling and logging:
Request/response logging
Rate limit monitoring
Sync conflict detection
Validation error reporting
Docker Deployment
Build and Run
# Build image
make docker-build
# Run container
docker run -it --rm \
-v "${PWD}/.claude:/app/.claude" \
-e MOTION_API_KEY="your-api-key" \
motion-mcp-serverDocker Compose
version: '3.8'
services:
motion-mcp:
build: .
volumes:
- ./.claude:/app/.claude
environment:
- MOTION_API_KEY=${MOTION_API_KEY}
- MOTION_IS_TEAM_ACCOUNT=falseConfiguration
Environment Variables
MOTION_API_KEY= # Required: Your Motion API key
MOTION_IS_TEAM_ACCOUNT= # Rate limit configuration
MOTION_BASE_URL= # Motion API base URL
REQUEST_TIMEOUT= # API request timeout (ms)
CLAUDE_DATA_DIR= # Local storage directory
LOG_LEVEL= # Logging verbosityRate Limiting
The server automatically detects account type and applies appropriate limits:
Individual accounts: 12 requests/minute
Team accounts: 120 requests/minute
Troubleshooting
Common Issues
β "Motion API key not found"
# Check environment variables
echo $MOTION_API_KEY
# Verify .env file
cat .envβ "Project not bound locally"
# First bind the project
# Use motion.project.bind tool in Claudeβ Rate limit exceeded
# Check if team account flag is correct
MOTION_IS_TEAM_ACCOUNT=true # For team accountsDebug Mode
# Enable debug logging
export LOG_LEVEL=debug
npm startAPI Reference
The server implements all major Motion API endpoints:
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests for new functionality
Run quality checks:
make checkSubmit a pull request
Code Style
TypeScript with strict mode
Functional/Reactive Programming patterns
Immutable data structures
Pure functions without side effects
License
MIT License - see LICENSE file for details.
Support
π§ MCP Specification
π Report Issues
Built with β€οΈ for the Claude ecosystem
Available Tools
25 toolsmotion.context.loadC
Load project context
Inputs: projectId.
motion.context.saveC
Save project context for AI
Inputs: context, projectId.
motion.docs.createC
Generate project documentation
Inputs: type, template, projectId.
motion.docs.updateC
Update existing docs
Inputs: docId, content, projectId.
motion.project.bindC
Bind project to local storage
Inputs: projectId.
motion.project.createD
Create a new project
Inputs: name, description, workspaceId.
motion.project.listC
List all projects with pagination
Inputs: limit, cursor, workspaceId.
motion.project.syncD
Sync project with Motion
Inputs: force, projectId.
motion.status.reportC
Generate status reports
Inputs: format, projectId, includeMetrics.
motion.sync.allC
Sync all bound projects
Inputs: force.
motion.sync.checkD
Check sync status
Inputs: projectId.
motion.task.analyzeD
Analyze task complexity
Inputs: taskId.
motion.task.batch_createC
Create multiple tasks from goals
Inputs: goal, context, maxTasks, projectId.
motion.task.completeC
Mark tasks as completed
Inputs: taskId.
motion.task.createD
Create a new task
Inputs: name, enrich, dueDate, duration, +3 more.
motion.task.enrichC
AI-enhance task descriptions
Inputs: taskId, context.
motion.task.listC
List and filter tasks
Inputs: limit, cursor, status, priority, +1 more.
motion.task.moveC
Move task to different project
Inputs: taskId, targetProjectId.
motion.task.searchC
Search tasks in local storage
Inputs: query, status, projectId.
motion.task.updateD
Update task properties
Inputs: name, status, taskId, dueDate, +3 more.
motion.workflow.planD
Generate comprehensive plans
Inputs: goal, context, projectId, constraints.
motion.workspace.get_settingsC
Get workspace settings
Inputs: workspaceId.
motion.workspace.listC
List all workspaces
Inputs: limit, cursor.
motion.workspace.set_defaultD
Set default workspace
Inputs: workspaceId.
motion.workspace.update_settingsD
Update workspace settings
Inputs: settings, workspaceId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 25 tools
Most tools map cleanly to a resource+action combination, but a few boundaries blur: motion.task.list vs motion.task.search (all tasks vs local storage), and the three sync-related tools (motion.project.sync, motion.sync.all, motion.sync.check) could be confused. The AI-oriented trio (motion.task.enrich, motion.task.analyze, motion.workflow.plan) also has soft boundaries, though descriptions clarify intent.
Every tool follows the motion.<domain>.<action> pattern, with global ops (motion.sync.all, motion.status.report) fitting the same convention. Action verbs are consistently snake_case and descriptive, so the pattern generalizes predictably across tasks, projects, docs, context, and workspaces.
25 tools is on the heavy edge for what is essentially a task/project manager. The workspace, sync, and docs clusters each add a handful of low-frequency administrative operations, so the surface feels somewhat sprawling rather than tightly scoped.
Tasks have decent lifecycle support (create, batch_create, list, search, update, complete, move) but no delete or get-by-id. Projects lack update/archive/delete entirely, and docs have create/update but no list or delete. These are notable gaps that will force agents to work around missing lifecycle operations.
Maintenance
Related MCP Connectors
AI-native project management for tasks, docs, collaboration, and agents.
Tasks, projects, next steps and notes in one app your AI reads and writes.
AI-native task management: list, create, update and archive tasks with rich context for AI agents
Manage tasks, Focus Zone, notes, projects, and task history from compatible AI assistants.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to Motion for comprehensive task and project management, including creating/updating tasks, managing projects, handling workspaces, comments, and recurring tasks with smart rate limiting.2MIT
- AlicenseBqualityDmaintenanceEnables natural language management of Motion tasks, projects, schedules, and more via the Model Context Protocol, integrating with LLMs like Claude and ChatGPT.10Apache 2.0
- AlicenseBqualityNot gradedmaintenanceEnables natural language management of Motion tasks, projects, schedules, and more by bridging the Motion API with LLMs through the Model Context Protocol.10Apache 2.0
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to manage Motion tasks, projects, workspaces, schedules, comments, custom fields, and recurring tasks through natural-language conversation via the Model Context Protocol.Apache 2.0