Teamleader Focus MCP
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., "@Teamleader Focus MCP Log 2 hours to Acme Corp's website project for design work"
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.
Teamleader Focus MCP
A Model Context Protocol (MCP) server that wraps the Teamleader Focus CRM API. Gives AI assistants (Claude Code, Claude Desktop, Cursor, etc.) the ability to manage contacts, companies, deals, tasks, events, invoices, time tracking, and projects — including a smart task resolution workflow for automated time logging.
Inspired by globodai-group/mcp-teamleader. Rewritten and extended with full API coverage, time tracking, projects v2, and smart cache-first task resolution.
Features
112 tools covering the full Teamleader Focus API
Contacts — Full CRUD + tag/untag + company link management
Companies — Full CRUD + tag/untag
Deals — Full CRUD + win/lose/move + pipelines/phases/sources management
Tasks — Standalone tasks: full CRUD + complete/reopen/schedule
Events — List, get, create, update, cancel
Meetings — Full CRUD + complete + reports
Invoices — Full lifecycle: draft → book → send → payment → credit
Tickets — Full CRUD + messages + reply/internal
Time Tracking — List, add, update, delete + start/stop/resume timers + timesheet
Projects v2 — Full CRUD + groups + tasks + relationships + lifecycle
Subscriptions — Full CRUD + deactivate
Quotations — Full CRUD + accept/send/download
Materials — Full CRUD + assign/unassign/duplicate
Files — List, get, download, delete, upload
Notes — List, create, update
Calls — List, get, add, update, complete
Smart Resolution — Cache-first Company > Project > Group > Task navigation + time logging
OAuth2 — Browser-based login flow + automatic token refresh with rotation
Resilience — Automatic retry on rate limits (429, exponential backoff) and mid-flight token expiry (401 force-refresh + 1 retry)
Output cap — Responses exceeding 50 KB are written to a temp file; the tool returns an excerpt + path
Related MCP server: MCP Teamleader Focus
Prerequisites
A Teamleader Focus account with API access:
Go to Developer Portal
Register an integration to get your Client ID and Client Secret
Complete the OAuth2 flow to obtain a Refresh Token (see QUICKSTART.md)
Quick Start
Option A — npx (recommended, no install needed)
Add to %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/.claude.json:
{
"mcpServers": {
"teamleader": {
"command": "npx",
"args": ["-y", "@tailormade/teamleader-focus-mcp"],
"env": {
"TEAMLEADER_CLIENT_ID": "your_client_id",
"TEAMLEADER_CLIENT_SECRET": "your_client_secret",
"TEAMLEADER_REFRESH_TOKEN": "your_refresh_token"
}
}
}
}Option B — Build from source
git clone https://github.com/tailormade-eu/Tailormade.TeamleaderFocusMcp.git
cd Tailormade.TeamleaderFocusMcp
npm install
npm run buildAdd to your Claude config:
{
"mcpServers": {
"teamleader": {
"command": "node",
"args": ["C:\\ABSOLUTE\\PATH\\TO\\dist\\index.js"],
"env": {
"TEAMLEADER_CLIENT_ID": "your_client_id",
"TEAMLEADER_CLIENT_SECRET": "your_client_secret",
"TEAMLEADER_REFRESH_TOKEN": "your_refresh_token"
}
}
}
}Configuration
Environment Variables
Variable | Required | Description |
| Yes | OAuth2 Client ID |
| Yes | OAuth2 Client Secret |
| No | OAuth2 Refresh Token (auto-rotated, persisted to |
Cache Files
File | Purpose |
| Entity cache (companies, projects, groups, tasks, task trees) |
| Full task tree written by |
| Persisted OAuth2 tokens (auto-managed) |
Available Tools
Contacts
Tool | Description |
| List contacts with optional filtering by term, tags, or updated_since |
| Get full details of a specific contact by ID |
| Create a new contact (first name, last name, email, phone, tags, language) |
| Update an existing contact |
| Delete a contact |
| Link a contact to a company (with optional position/decision_maker) |
| Unlink a contact from a company |
| Update position or decision_maker on an existing link |
| Add tags to a contact |
| Remove tags from a contact |
Companies
Tool | Description |
| List companies with filtering by term, tags, or VAT number |
| Get full details of a specific company by ID |
| Create a new company (name, email, phone, VAT, website, tags) |
| Update an existing company |
| Delete a company |
| Add tags to a company |
| Remove tags from a company |
Deals
Tool | Description |
| List deals with filtering by term, phase, or responsible user |
| Get full details of a specific deal by ID |
| Create a new deal (title, customer, phase, value, probability) |
| Update an existing deal (title, value, dates, responsible user) |
| Delete a deal |
| Mark a deal as lost (optional reason_id + extra_info) |
| Mark a deal as won |
| Move a deal to a different phase |
| List available lost reasons (for deals.lose) |
| List deal phases (for deals.move/create) |
| List deal sources (for deals.create) |
| List deal pipelines |
| Create a deal pipeline |
| Update a deal pipeline |
| Delete a deal pipeline |
| Duplicate a deal pipeline |
| Mark a pipeline as default |
| Create a deal phase |
| Update a deal phase |
| Delete a deal phase |
| Duplicate a deal phase |
| Reorder a deal phase |
Tasks (standalone)
Tool | Description |
| List tasks with optional filtering and pagination |
| Create a new task |
| Get full details of a specific task by ID |
| Update task title, description, due date, or assignee |
| Delete a task |
| Mark a task as completed |
| Reopen a completed task |
| Schedule a task as a calendar event |
Events
Tool | Description |
| List calendar events with optional date range filter |
| Get full details of a specific event by ID |
| Create a new calendar event (title, activity type, start/end, attendees) |
| Update an existing event |
| Cancel a calendar event |
Meetings
Tool | Description |
| List meetings with filter by employee, date range, or term |
| Get full details of a specific meeting |
| Schedule a new meeting with attendees and optional customer/deal |
| Update meeting details |
| Mark a meeting as done |
| Delete a meeting |
| Create a report attached to a contact, company, or deal |
Invoices
Tool | Description |
| List invoices with filtering by status, date range, or department |
| Get full details of a specific invoice by ID |
| Create a new draft invoice with line items |
| Book a draft invoice (→ outstanding) |
| Send invoice via email |
| Send invoice via Peppol e-invoicing |
| Delete a draft invoice |
| Update a draft invoice |
| Update limited fields on a booked invoice |
| Register a payment on an invoice |
| Remove all payments from an invoice |
| Copy an invoice to a new draft |
| Create a full credit note |
| Create a partial credit note |
| Get a temporary download URL (PDF/UBL) |
| List mail templates (for invoice sending) |
| List payment methods (for registering payments) |
Tickets
Tool | Description |
| List tickets with filter by customer, project, or status |
| Get full details of a specific ticket |
| Create a new ticket (subject, customer, team, assignee) |
| Update ticket subject, description, status, or assignee |
| List messages on a ticket (filter by type or date) |
| Get a single message by ID |
| Add a customer-visible reply to a ticket |
| Add an internal/private message to a ticket |
| Import a raw message into a ticket |
Subscriptions
Tool | Description |
| List recurring invoices with filtering |
| Get subscription details |
| Create a new recurring invoice |
| Update subscription settings |
| Deactivate a subscription |
Quotations
Tool | Description |
| List quotations with filtering |
| Get quotation details |
| Create a new quotation |
| Update an existing quotation |
| Delete a quotation |
| Accept a quotation |
| Send quotation via email |
| Get a temporary download URL |
Credit Notes
Tool | Description |
| List credit notes with filtering |
| Get credit note details |
| Get a temporary download URL |
| Send credit note via Peppol |
Materials
Tool | Description |
| List materials with filtering |
| Get material details |
| Create a new material |
| Update a material |
| Delete a material |
| Assign material to a project task |
| Unassign material from a task |
| Duplicate a material |
Calls
Tool | Description |
| List calls with filtering |
| Get call details |
| Add a new call |
| Update a call |
| Mark a call as complete |
Orders
Tool | Description |
| List orders with filtering |
| Get order details |
Time Tracking
Tool | Description |
| List time entries filtered by user, date range, or subject |
| Get details of a specific time entry by ID |
| Add a new time entry (user, work type, start/end, subject) |
| Update an existing time entry |
| Delete a time entry |
| Start a running timer (one active timer per user) |
| Stop the current running timer |
| Get the currently running timer |
| Update a running timer (work type, subject, description) |
| Start a new timer from an existing time entry |
| Daily timesheet — all entries for a date, grouped by project/task. Formats: md, beauty, manictime |
Projects v2
Tool | Description |
| List projects with filtering by status, company, or search term |
| Get full details of a specific project by ID |
| Create a new project with customer, dates, and responsible user |
| Update an existing project |
| Close a project |
| Reopen a closed project |
| Delete a project |
| Duplicate a project to a new draft |
| Add a customer (company/contact) to a project |
| Remove a customer from a project |
| Link a deal to a project |
| Unlink a deal from a project |
| Add an owner/member to a project |
| Remove an owner/member from a project |
| Assign a user or team to a project |
| Unassign a user or team from a project |
| List project groups (phases/milestones) for a project |
| Create a new group (phase) within a project |
| Update a project group title, description, or dates |
| List tasks by project or project group |
| Create a task within a project or group |
| Mark a project task as complete |
| Reopen a completed project task |
| Delete a project task |
| Remove a task from its group |
| Add/move a task or material to a group |
| List all lines (tasks + materials) in a project |
| Get project group details |
| Duplicate a project group |
| Assign a user/team to a project group |
| Unassign from a project group |
| Update a project task |
| Get project task details |
| Assign a user to a project task |
| Unassign from a project task |
| Duplicate a project task |
| Link a quotation to a project |
| Unlink a quotation from a project |
Users
Tool | Description |
| List all users in the account |
| Get full details of a specific user by ID |
Departments
Tool | Description |
| List all departments |
| Get full details of a specific department |
Files
Tool | Description |
| List files attached to a contact, company, deal, invoice, project, or ticket |
| Get file metadata (name, size, mime type, uploader) |
| Get a temporary download URL for a file |
| Delete a file |
| Upload a file to an entity (two-step: get URL, then upload) |
Notes
Tool | Description |
| List notes for a contact, company, deal, or project |
| Create a note on a contact, company, deal, or project |
| Update an existing note by ID |
Lookup Lists
Tool | Description |
| List activity types (needed for events.create) |
| List tax rates (needed for invoice line items) |
| List payment terms (needed for invoices) |
| List ticket statuses (needed for tickets.update) |
| List products (for invoice line items) |
| List product categories |
| List work types (for time tracking) |
| List teams (needed for tickets) |
| List all tags used in the account |
| List expense entries with optional filters |
| List business types |
| List call outcomes |
| List currencies and exchange rates |
| List document templates |
| List commercial discounts |
| List lost reasons |
| List price lists |
| List units of measure |
| List withholding tax rates |
| List bookkeeping submissions |
| Add a product |
| Get product details |
| Update a product |
| Delete a product |
Smart Resolution (Cache-first)
These tools implement the recommended workflow for time logging. They maintain a local cache to avoid repeated API calls.
Tool | Description |
| Navigate Company > Project > Group > Task hierarchy interactively. Numbered selection when multiple options. Tasks auto-created if not found. |
| Register time for a task. Resolves from cache. Supports deduplication and overlap detection. |
| Load and display the full Project > Group > Task tree for a company. Cache-first (30 min TTL). Writes YAML with all IDs. |
| Maintenance actions on tasks: close, create, move a time entry, or delete a project group. |
| Show cache statistics and all cached tasks. |
| Clear the entire local cache (forces fresh API lookups on next call). |
Authentication
Tool | Description |
| Start OAuth login flow — opens browser for Teamleader authorization, captures callback on localhost:19836, exchanges code for tokens, persists to |
Recommended Workflow: Time Logging
Option A — Interactive (first use or unknown task)
1. teamleader_find_task(company_name="Acme", group_name="Sprint 12", task_name="Bug fix login")
→ resolves company > project > group > task, caches result
2. teamleader_log_time(company_name="Acme", task_name="Bug fix login", started_on="09:00", ended_on="11:30")
→ reads from cache, logs time entry, checks for duplicatesOption B — Load tree first (recommended for sessions with many log entries)
1. teamleader_load_tasks(company_name="Acme")
→ fetches full tree, writes ~/.teamleader-tasks-acme.yaml, shows summary
2. teamleader_load_tasks(company_name="Acme", visual=true)
→ shows numbered ASCII tree
Company: Acme Corp
=== Project Alpha ===
[Sprint 12]
1. Bug fix login (to_do)
2. Add unit tests (in_progress)
3. teamleader_load_tasks(company_name="Acme", task_selection=1)
→ caches task #1 for direct use
4. teamleader_log_time(company_name="Acme", task_name="Bug fix login", started_on="09:00", ended_on="11:30")
→ resolves from cache, logs timeOption C — Direct task_id (fastest, when ID is already known)
teamleader_log_time(company_name="Acme", task_id="abc-123", started_on="09:00", ended_on="11:30")Smart Resolution: teamleader_find_task Parameters
Parameter | Required | Description |
| Yes | Partial match on company name |
| Yes | Partial match on group/phase name (searched across all projects) |
| Yes | Partial match on task name (auto-created if not found) |
| Auto | Select project by number when multiple found |
| Auto | Select task by number from listed options |
| Auto | Confirm creation of new group (requires project_selection) |
| Auto | Confirm creation of new project |
| Optional | Only show open tasks — to_do, in_progress, on_hold (default: true) |
| Internal | Resolved company ID, pass between calls to avoid re-resolving |
| Internal | Resolved project ID |
| Internal | Resolved group ID |
| Internal | Resolved group title |
Smart Resolution: teamleader_log_time Parameters
Parameter | Required | Description |
| Yes | Partial match on company name |
| Conditional | Task name (partial match, must be in cache). Required if task_id not given. |
| Conditional | Direct task ID — skips cache lookup. Use when ID is known from load_tasks. |
| Yes | Start time: ISO 8601, |
| Yes | End time: same formats as started_on |
| Optional | Description of work done |
| Optional | Override the default work type |
| Optional | Date for HH:MM format (YYYY-MM-DD, default: today) |
| Optional | Skip deduplication and overlap checks entirely |
| Optional | Confirm registration when overlap with another task is detected |
Deduplication Rules (teamleader_log_time)
Rule | Condition | Action |
Exact duplicate | Same task ID, same start time (to second) | Block with error |
Overlap | Any time range overlap with existing entry | Warn, ask |
Force |
| Skip all checks |
teamleader_load_tasks Parameters
Parameter | Description |
| Company to load (partial match) |
| Filter projects by name (partial match) |
| Filter groups by name (partial match) |
| Only include open tasks (default: true) |
| Show ASCII tree with numbered tasks instead of summary |
| Cache a specific task by number (from visual output) |
| Force reload from API, bypass 30 min cache |
| Internal: resolved company ID |
Cache TTL
Entity | TTL |
active_user | No expiry (manual clear only) |
work_types | 7 days |
companies | 24 hours |
projects | 2 hours |
groups | 1 hour |
tasks | 1 hour |
task_trees | 30 minutes |
Auto-prune: expired entries are removed on every cache write.
Teamleader API Quirks
These are critical for any future development or debugging.
projects-v2/projectLines.list
project_idmust be top-level in the request body — NOT insidefilterproject_group_idis NOT a server-side filter — must filter client-side onl.group?.id
projects-v2/tasks.list
Filter by
idsarray works server-sideStatus is NOT a server-side filter — filter client-side on status field
projects-v2/tasks.create
Use
group_id(NOTproject_group_id)Use
tasks.createendpoint (NOTprojectLines.create)
timeTracking.list
Returns
subject.type: "todo"— the ID differs from thenextgenTaskIDDeduplication must match on start time (to second precision), not on subject ID
invoices.registerPayment
Uses
paid_at(NOTpayment_date)Payment is a nested object:
{ payment: { amount: { amount, currency }, paid_at, payment_method_id } }
invoices.creditPartially
Line item tax uses
unit_price.tax: "excluding"(NOT a currency field)
tickets.list
Customer filter uses
relates_to: { type, id }(NOTcustomer_id)Status filter uses
exclude.status_idsarray (no direct status filter)
projects.close
Requires
closing_strategy:"mark_tasks_and_materials_as_done"or"none"
projects.delete
Requires
delete_strategy:"unlink_tasks_and_time_trackings"or"delete_tasks_and_time_trackings"
projects.assign / projects.addCustomer
assignusesassignee: { type, id }objectaddCustomer/removeCustomerusecustomer: { type, id }object
projectGroups.update
Uses
start_date/end_date(NOTstarts_on/due_on)
files.upload
Two-step process: call
files.uploadto get a pre-signed URL, then POST binary directly to that URL (no auth needed for step 2)
General
All API calls use POST with JSON body
Base URL:
https://api.focus.teamleader.euPagination uses
page.numberandpage.size
File Structure
src/
api/
auth.ts — OAuth2 token management (auto-rotate, persist to ~/.teamleader-tokens.json)
client.ts — HTTP client (all POST requests)
cache.ts — Cache types, TTL constants, CRUD functions, task tree operations
tools/
resolve.ts — Smart tools: find_task, log_time, load_tasks, task_action, cache_stats, clear_cache
contacts.ts — Contact CRUD + tag/link
companies.ts — Company CRUD + tag
deals.ts — Deal CRUD + pipelines/phases/sources
tasks.ts — Standalone tasks
events.ts — Events
meetings.ts — Meetings + reports
invoices.ts — Invoices + payment + credit
timetracking.ts — Time tracking + timers + timesheet
projects.ts — Projects v2 + groups + lines + project tasks
tickets.ts — Tickets + messages
subscriptions.ts — Subscriptions
quotations.ts — Quotations
creditnotes.ts — Credit notes
materials.ts — Materials
calls.ts — CRM calls
orders.ts — Orders
files.ts — Files
notes.ts — Notes
users.ts — Users
departments.ts — Departments
lookups.ts — All reference data lists
login.ts — OAuth login flow
index.ts — MCP server entry point, tool registration
docs/
api/ — Full Teamleader Focus API docs (360 pages, scraped 2026-03-05)
BusinessLogica/ — Business logic docs per domainDevelopment
# Install
npm install
# Build (TypeScript → dist/)
npm run build
# Type check only
npm run typecheck
# Dev mode (watch)
npm run dev
# Test with MCP inspector
npx @modelcontextprotocol/inspector node dist/index.jsReferences
Teamleader Focus API — OAuth2 REST API (all POST, JSON body)
Model Context Protocol — MCP specification
globodai-group/mcp-teamleader — Original inspiration
Local scraped API docs:
docs/api/(360 pages, updated 2026-03-05)
API Reference
Base URL:
https://api.focus.teamleader.euAll endpoints use POST with JSON body
Authentication: OAuth2 with automatic token refresh
License
Available Tools
1 toolteamleader_loginA
Start OAuth login flow for Teamleader Focus. Opens browser for authorization, then captures the callback to obtain and store tokens. Use this for initial setup or when the refresh token has expired.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only a single tool there is no possibility of selection confusion; its purpose (OAuth login/token acquisition) is stated unambiguously. No other tool overlaps with it because no other tools exist.
The name `teamleader_login` follows a clear, readable snake_case convention with a domain prefix and an action suffix. With only one tool there is no cross-tool pattern to verify, so it cannot demonstrate full consistency across a set.
A single tool is far too few for a server that claims to represent the Teamleader Focus platform, which implies CRM, deals, invoices, contacts, and time-tracking operations. Auth alone is a prerequisite, not a useful tool surface.
There is no CRUD or read access to any Teamleader resource at all — an agent can authenticate but then has nothing to call. Even the login lifecycle is partial, since there is no logout, token status, or refresh tool.
Maintenance
Related MCP Connectors
Create contacts, move deals, send proposals and invoices, read your inbox, from Claude or ChatGPT.
Operate the Plixana CRM from any AI: contacts, deals, quotes, WhatsApp and metrics.
Open-source CRM your AI agents can write to: companies, people, opportunities, tasks and notes.
Open-source CRM for AI agents: humans, orgs, interactions, deals, tasks, links and an activity log.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to interact with a CRM covering companies, people, leads, deals, and more, with role checks, scoped agent keys, approval gates, and a shared audit trail.AGPL 3.0
- AlicenseBqualityBmaintenanceEnables AI assistants to manage Teamleader Focus CRM data, including contacts, companies, deals, projects, tasks, events, invoices, quotations, notes, and time tracking through natural language.71MIT
- AlicenseNot gradedqualityBmaintenanceConnects AI assistants to a business workspace so they can read and manage clients, leads, projects, tasks, tickets, invoices, proposals, and related records, including sending client emails.1MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to access and manage CRM data by creating contacts and companies, retrieving activities and conversations, and performing semantic search over previously retrieved information with built-in vector storage and caching.-