MoCo MCP Server
Serves as the runtime environment for the MCP server, providing access to the MoCo API for time tracking, project management, and presence monitoring functions.
Used to implement the MCP server with full type safety, ensuring reliable integration with the MoCo API.
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., "@MoCo MCP Server show my time entries for this week"
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.
π MOCO MCP Server
A Model Context Protocol (MCP) server that provides employee read access to the MOCO API for time tracking, project management, holiday tracking, and presence monitoring.
β‘ Quick Start
npx -y @niondigital/moco-mcpThat's it! The server will start and be ready to connect to your MCP client.
Related MCP server: Motion MCP Server
π Installation
Prerequisites
Node.js β₯ 18.0.0
MOCO account with API access
MOCO API key and subdomain
MCP Client Integration
Add to your Claude Desktop claude_desktop_config.json file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"moco": {
"command": "npx",
"args": ["-y", "@niondigital/moco-mcp"],
"env": {
"MOCO_API_KEY": "your-moco-api-key",
"MOCO_SUBDOMAIN": "your-subdomain"
}
}
}
}Add to your Cursor settings:
MacOS: ~/Library/Application Support/Cursor/User/settings.json
Windows: %APPDATA%\Cursor\User\settings.json
Linux: ~/.config/Cursor/User/settings.json
{
"mcpServers": {
"moco": {
"command": "npx",
"args": ["-y", "@niondigital/moco-mcp"],
"env": {
"MOCO_API_KEY": "your-moco-api-key",
"MOCO_SUBDOMAIN": "your-subdomain"
}
}
}
}Add to your Windsurf MCP configuration:
{
"mcpServers": {
"moco": {
"command": "npx",
"args": ["-y", "@niondigital/moco-mcp"],
"env": {
"MOCO_API_KEY": "your-moco-api-key",
"MOCO_SUBDOMAIN": "your-subdomain"
}
}
}
}Add the MCP server to Claude Code:
claude mcp add -e MOCO_API_KEY="your-moco-api-key" -e MOCO_SUBDOMAIN="your-subdomain" moco -- npx -y @niondigital/moco-mcpConfigure Gemini CLI with MCP support:
{
"mcpServers": {
"moco": {
"command": "npx",
"args": ["-y", "@niondigital/moco-mcp"],
"env": {
"MOCO_API_KEY": "your-moco-api-key",
"MOCO_SUBDOMAIN": "your-subdomain"
}
}
}
}Go to
Kiro>MCP ServersAdd new MCP server by clicking
+ AddPaste the configuration below:
{
"mcpServers": {
"moco": {
"command": "npx",
"args": [
"-y",
"@niondigital/moco-mcp"
],
"env": {
"MOCO_API_KEY": "your-moco-api-key",
"MOCO_SUBDOMAIN": "your-subdomain"
},
"disabled": false,
"autoApprove": []
}
}
}
Click
Saveto apply changes
Go to
Program(right side) >Install>Edit mcp.jsonPaste the configuration below:
{
"mcpServers": {
"moco": {
"command": "npx",
"args": ["-y", "@niondigital/moco-mcp"],
"env": {
"MOCO_API_KEY": "your-moco-api-key",
"MOCO_SUBDOMAIN": "your-subdomain"
}
}
}
}Click
Saveto apply changesToggle MCP server on/off from the right hand side (under
Program) or by clicking the plug icon at the bottom of the chat box
π MOCO API Setup
Getting Your API Credentials
Log into your MOCO account
Navigate to API settings:
Go to Profile β Integrations
Or visit:
https://niondigital.mocoapp.com/profile/integrations
Copy the listed API key
Note your subdomain:
From your MOCO URL:
https://yourcompany.mocoapp.comYour subdomain is:
yourcompany
Environment Variables
You can set environment variables in several ways:
Option 1: System Environment Variables
export MOCO_API_KEY="your-moco-api-key"
export MOCO_SUBDOMAIN="your-subdomain"Option 2: .env File (for local development)
MOCO_API_KEY=your-moco-api-key
MOCO_SUBDOMAIN=your-subdomainOption 3: MCP Client Configuration (recommended)
Use the env section in your MCP client configuration as shown above.
π οΈ Available Tools
Tool | Description | Parameters |
| Get activities within a date range with summation and optional project filtering |
|
| List all assigned projects or search by query |
|
| Get all tasks for a specific assigned project |
|
| Get holiday overview for a year with calculations |
|
| Get presence data within a date range with daily summaries |
|
| Get sick days overview for a year with calculations |
|
| Get public holidays for a year with working days calculations |
|
π― Available Prompts
The MoCo MCP server provides 8 intelligent prompts that orchestrate multiple tools to deliver comprehensive insights:
Prompt | Description | Key Parameters |
| Generates detailed weekly time tracking report with project breakdown |
|
| Assists with vacation planning by analyzing available days and holidays |
|
| Analyzes work habits and provides productivity recommendations |
|
| Creates comprehensive business reports with trends and metrics |
|
| Evaluates work-life balance with personalized recommendations |
|
| Detailed project time analysis with efficiency metrics |
|
| Team capacity planning with absence and resource analysis |
|
| Compliance check for working time regulations |
|
Prompt Examples
Weekly Time Report:
{
"name": "weekly_time_report",
"arguments": {
"week_start": "2024-01-15",
"include_billable_analysis": true
}
}Vacation Planning:
{
"name": "vacation_planning_assistant",
"arguments": {
"planned_start_date": "2024-07-15",
"planned_end_date": "2024-07-29"
}
}Work-Life Balance Analysis:
{
"name": "smart_work_life_balance_advisor",
"arguments": {
"analysis_weeks": 6,
"target_hours_per_week": 40
}
}Compliance Check:
{
"name": "work_hours_compliance_check",
"arguments": {
"check_period": "last_month",
"max_weekly_hours": 48,
"max_daily_hours": 10
}
}π Tool Examples
Get Activities
Filter all activities in a date range:
{
"name": "get_activities",
"arguments": {
"startDate": "2024-01-01",
"endDate": "2024-01-31"
}
}Filter activities for a specific project:
{
"name": "get_activities",
"arguments": {
"startDate": "2024-01-01",
"endDate": "2024-01-31",
"projectId": 123456
}
}Sample Output:
Activities from 2024-01-01 to 2024-01-31:
2024-01-15:
Project 123 (Website Redesign):
Task 456 (Frontend Development): 4.5h (4:30)
Task 789 (Backend API): 3.25h (3:15)
Project total: 7.75h (7:45)
Daily total: 7.75h (7:45)
Grand total: 7.75h (7:45)Get User Projects
List all assigned projects:
{
"name": "get_user_projects",
"arguments": {}
}Search projects:
{
"name": "get_user_projects",
"arguments": {
"query": "website"
}
}Get User Project Tasks
{
"name": "get_user_project_tasks",
"arguments": {
"projectId": 123456
}
}Get User Holidays
{
"name": "get_user_holidays",
"arguments": {
"year": 2024
}
}Sample Output:
Holiday overview for 2024:
Taken holiday days:
- 2024-03-15: 1.0 day
- 2024-04-22: 0.5 day
- 2024-07-08: 1.0 day
Summary:
- Taken vacation: 2.5 days
- Annual entitlement: 25 days
- Utilization: 10% (2.5/25)
- Remaining vacation: 22.5 daysGet User Presences
{
"name": "get_user_presences",
"arguments": {
"startDate": "2024-01-01",
"endDate": "2024-01-07"
}
}Sample Output:
Presences from 2024-01-01 to 2024-01-07:
Daily presences:
- 2024-01-01: 8.25h (8:15)
- 2024-01-02: 7.5h (7:30)
- 2024-01-03: 8.0h (8:00)
Grand total: 23.75h (23:45)
Statistics:
- Working days: 3
- Average per day: 7.92h (7:55)Get User Sick Days
{
"name": "get_user_sick_days",
"arguments": {
"year": 2024
}
}Get Public Holidays
{
"name": "get_public_holidays",
"arguments": {
"year": 2024
}
}Sample Output:
Public holidays for 2024:
Holiday dates:
- 2024-01-01: New Year's Day
- 2024-04-01: Good Friday
- 2024-04-03: Easter Monday
- 2024-05-01: Labor Day
- 2024-05-09: Ascension Day
- 2024-05-20: Whit Monday
- 2024-10-03: German Unity Day
- 2024-12-25: Christmas Day
- 2024-12-26: Boxing Day
Summary:
- Total public holidays: 9 days
- Approximate working days: 251 daysπ§ Advanced Configuration
If you want to run from source:
git clone https://github.com/niondigital/moco-mcp.git
cd moco-mcp
npm install
npm run build
npm startThen configure your MCP client to use the local path:
{
"mcpServers": {
"moco": {
"command": "node",
"args": ["/path/to/moco-mcp/dist/index.js"],
"env": {
"MOCO_API_KEY": "your-moco-api-key",
"MOCO_SUBDOMAIN": "your-subdomain"
}
}
}
}FROM node:18-alpine
WORKDIR /app
RUN npm install -g @niondigital/moco-mcp
ENV MOCO_API_KEY=""
ENV MOCO_SUBDOMAIN=""
CMD ["@niondigital/moco-mcp"]π Troubleshooting
Common Issues
β Authentication Error:
API authentication failed. Please check MOCO_API_KEY.Verify your API key is correct and has necessary permissions
Check if the API key is properly set in environment variables
Ensure the key hasn't expired
β Subdomain Error:
MOCO_SUBDOMAIN should only contain the subdomain nameUse only the subdomain part:
company(notcompany.mocoapp.com)Remove
https://and.mocoapp.comfrom the subdomain
β Node.js Version Error:
This package requires Node.js >= 18.0.0Update Node.js to version 18 or higher
Check your version:
node --version
β npx Connection Issues:
Error: Cannot find module '@niondigital/moco-mcp'Ensure you have internet connection
Try:
npx --yes @niondigital/moco-mcpClear npx cache:
npx clear-npx-cache
β MCP Client Not Finding Tools:
Restart your MCP client after configuration changes
Check that environment variables are properly set
Verify JSON configuration syntax is correct
Debug Mode
For debugging, you can run the server with additional logging:
NODE_ENV=development npx -y @niondigital/moco-mcpTesting Connection
You can test the server manually:
echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' | npx -y @niondigital/moco-mcpπ Features
β Read-only Access: Safe API integration with no data modification
π Automatic Pagination: Handles large datasets seamlessly
π Smart Aggregation: Automatic summation by date, project, and task
π― Project Filtering: Filter activities by specific projects
π§© Comprehensive Tools: 7 specialized tools for different use cases
π― Intelligent Prompts: 8 AI-powered prompts for complex analysis and insights
π Multi-Client Support: Works with all major MCP clients
π€ Contributing
Fork the repository
Create a feature branch:
git checkout -b feature-nameMake your changes and add tests
Run tests:
npm testSubmit a pull request
π License
MIT License - see LICENSE file for details.
π Support
MOCO API Issues: MOCO API Documentation
MCP Protocol: MCP Documentation
This Package: GitHub Issues
Available Tools
7 toolsget_activitiesB
Get all activities within a date range with automatic summation by date, project, and task. Optionally filter by project ID.
Inputs: startDate (required), endDate (required), projectId.
get_public_holidaysB
Get all public holidays for a specific year with daily breakdown and total calculations
Inputs: year (required).
get_user_holidaysB
Get all user holidays for a specific year with utilization calculations and remaining vacation days
Inputs: year (required).
get_user_presencesC
Get user presences within a date range with daily aggregation and total calculations
Inputs: startDate (required), endDate (required).
get_user_projectsB
Get all projects assigned to the current user or search within assigned projects by name/description. If no query is provided, returns all assigned projects.
Inputs: query.
get_user_project_tasksA
Get all tasks for a specific assigned project by project ID. Only works for projects assigned to the current user.
Inputs: projectId (required).
get_user_sick_daysB
Get all user sick days for a specific year with daily breakdown and total calculations
Inputs: year (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose targeting different resources (activities, holidays, presences, projects, tasks, sick days) with no overlap in functionality. The descriptions specify unique data retrieval operations, making misselection unlikely.
All tools follow a consistent 'get_<resource>' naming pattern using snake_case, with clear and predictable verb-noun structure. This uniformity makes the tool set easy to navigate and understand.
With 7 tools, the server is well-scoped for its apparent purpose of retrieving user-related work and absence data. Each tool serves a distinct and necessary function without redundancy, fitting a typical range for such a domain.
The tool set is read-only, covering retrieval of activities, holidays, presences, projects, tasks, and sick days, which is comprehensive for querying user data. However, it lacks write operations (e.g., create, update, delete) or broader management functions, creating notable gaps for full lifecycle coverage in a work management domain.
Maintenance
Related MCP Connectors
MCP server for MOCO business software: time tracking, projects, budgets, and invoicing via API
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Model Context Protocol server for todo.vu task management and time tracking.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to manage OpenProject projects, work packages, activities, and wiki pages through the Model Context Protocol.-
- 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 gradedqualityCmaintenanceEnables MCP-compatible LLMs to interact with the MOCO ERP API, providing full read/write access to time tracking, projects, invoices, contacts, and other endpoints.16 npmISC

FrameOn MCPofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents to access and update shared team project contextβtasks, documents, decisions, and time trackingβthrough the Model Context Protocol.MIT