Skip to main content
Glama
MCP Teamleader Focus

MCP Teamleader Focus

MCP Teamleader Focus β€” Growing Pai internal code

A Model Context Protocol (MCP) server for Teamleader Focus CRM, maintained for internal use at Growing Pai. Gives AI assistants (Claude, etc.) the ability to manage contacts, companies, deals, tasks, events, invoices, and timesheets directly in Teamleader.

Growing Pai team members: everyone can use this MCP to manage contacts, companies, tasks, events, projects, notes, lookups, and β€” importantly β€” log their own timesheets/effort via the Time Tracking tools.

Features

  • πŸ“‡ Contacts β€” Full CRUD, tag/untag, link/unlink to companies

  • 🏒 Companies β€” Full CRUD, tag/untag

  • πŸ’° Deals β€” List, get, create, update (relink customer, edit description), move phase, win/lose, delete

  • πŸ“ Projects β€” Full next-gen projects module: list, get, create, update (incl. start/end dates), close/reopen, duplicate, delete, manage owners/assignees/customers/deals/quotations

  • βœ… Tasks β€” Full CRUD, complete/reopen, schedule to calendar

  • πŸ“… Events β€” List, get, create, update, cancel calendar events

  • ⏱️ Time Tracking β€” List, get, add, update, delete timesheet entries β€” open to everyone, this is how you log your hours/effort

  • 🧾 Invoices β€” List, get, create, update (draft), book, delete

  • πŸ“ Quotations β€” List, get, create, update, accept, send, download, delete

  • πŸ—’οΈ Notes β€” List, create, update notes on any entity

  • πŸ”Ž Lookups β€” Users, teams, departments, work types, activity types, tax rates, products, product categories, deal phases/pipelines/sources, lost reasons, custom fields

  • πŸ” OAuth2 β€” Automatic token refresh with rotation support

Related MCP server: teamleader-mcp

Prerequisites

You need a Teamleader Focus account with API access:

  1. Go to the Teamleader Marketplace or Developer Portal

  2. Register an integration to get your Client ID and Client Secret

  3. Complete the OAuth2 flow to obtain a Refresh Token β€” the included helper script makes this easy:

    TEAMLEADER_CLIENT_ID=... TEAMLEADER_CLIENT_SECRET=... node scripts/get-refresh-token.mjs

    In case this does not work (Teamleader might block this), you can use the default in Postman.

Quick Start

From the ZIP download

  1. Unzip the folder anywhere on your machine β€” dependencies are bundled, no npm install needed.

  2. Point your MCP client at dist/index.js directly (see the Claude Desktop / Cursor examples below, using node as the command and the full path to dist/index.js as the argument).

Build your own Claude Desktop bundle (.mcpb)

The extension manifest lives in mcpb/manifest.json. To package your own growing-pai-teamleader.mcpb from source:

npm ci
npm run build
node scripts/build-mcpb.mjs

The script stages the bundle in build/mcpb/ (manifest, compiled dist/, production dependencies only) and packs it with the official @anthropic-ai/mcpb CLI. No credentials are baked in β€” each installer enters their own in Claude Desktop.

Configuration

Environment Variables

Variable

Required

Description

TEAMLEADER_CLIENT_ID

βœ…

Your OAuth2 Client ID

TEAMLEADER_CLIENT_SECRET

βœ…

Your OAuth2 Client Secret

TEAMLEADER_REFRESH_TOKEN

βœ…

Your OAuth2 Refresh Token

ADMIN

❌

Optional password that unlocks the Deals, Invoices, and Quotations tools. This is a convenience gate, not a real security boundary β€” see SECURITY.md. Leave it unset to run without those tools.

TEAMLEADER_DEFAULT_LEDGER_ACCOUNT

❌

Ledger account number used as the default "Rekening" on invoice lines (default: 700000, Omzet).

TEAMLEADER_DEFAULT_PRODUCT_CATEGORY_ID

❌

Pin the default "Rekening" to a specific product category ID instead of looking it up by ledger number.

Invoice lines and the "Rekening"

Every invoice line in Teamleader is booked on a bookkeeping account β€” the "Rekening" column in the UI, which is a product category behind the scenes. teamleader_create_invoice and teamleader_update_invoice always fill it in: lines default to the category with ledger account 700000 (Omzet), and a line can override it with its own product_category_id (see teamleader_list_product_categories). If no category with that ledger account exists, the call fails instead of creating lines without a rekening.

Quotation lines have no equivalent β€” the Teamleader API does not accept product_category_id on quotations.create / quotations.update. The account is assigned when the quotation becomes an invoice.

Admin Access

The Deals, Invoices, and Quotations tools are gated behind an optional ADMIN password. To unlock them, add ADMIN=xxx to your environment (alongside the three OAuth variables above), using whatever value your team has set as the shared secret. Leave it unset to run the server without those tools.

This gate is checked in application code, which runs on your own machine and can be edited β€” so it's a convenience switch to avoid exposing these tools by accident, not a real access-control boundary. Anyone with the unpacked dist/index.js could patch the check out, or call the Teamleader API directly with their own OAuth token. The actual security boundary is what the Teamleader token behind TEAMLEADER_REFRESH_TOKEN is permitted to do β€” see SECURITY.md.

Claude Desktop

Add to your claude_desktop_config.json, use node with the full path to dist/index.js from the unzipped folder:

{
  "mcpServers": {
    "teamleader": {
      "command": "node",
      "args": ["/full/path/to/mcp-teamleader/dist/index.js"],
      "env": {
        "TEAMLEADER_CLIENT_ID": "YOUR_CLIENT_ID",
        "TEAMLEADER_CLIENT_SECRET": "YOUR_CLIENT_SECRET",
        "TEAMLEADER_REFRESH_TOKEN": "YOUR_REFRESH_TOKEN",
        "ADMIN": "xxx"
      }
    }
  }
}

Available Tools

Contacts

Tool

Description

teamleader_list_contacts

List contacts with filtering (term, tags, updated_since) and pagination

teamleader_get_contact

Get detailed info for a specific contact

teamleader_create_contact

Create a new contact (name, email, phone, tags...)

teamleader_update_contact

Update an existing contact

teamleader_delete_contact

Delete a contact

teamleader_tag_contact / teamleader_untag_contact

Add/remove tags without overwriting

teamleader_link_contact_to_company

Link a contact to a company (position, decision maker)

teamleader_update_contact_company_link

Update an existing contact–company link

teamleader_unlink_contact_from_company

Unlink a contact from a company

Companies

Tool

Description

teamleader_list_companies

List companies with filtering (term, tags, VAT number) and pagination

teamleader_get_company

Get detailed info for a specific company

teamleader_create_company

Create a new company

teamleader_update_company

Update an existing company

teamleader_delete_company

Delete a company

teamleader_tag_company / teamleader_untag_company

Add/remove tags without overwriting

Deals

Tool

Description

teamleader_list_deals

List deals with filtering (term, phase, responsible user) and pagination

teamleader_get_deal

Get detailed info for a specific deal

teamleader_create_deal

Create a new deal with customer, phase, and estimated value

teamleader_update_deal

Update a deal: title, description (summary), relink customer (lead), value, closing date, probability, responsible user, source, department

teamleader_move_deal

Move a deal to a different phase in its pipeline

teamleader_win_deal

Mark a deal as won

teamleader_lose_deal

Mark a deal as lost (optional reason and extra info)

teamleader_delete_deal

Delete a deal

Projects

Next-gen projects module (Teamleader /projects-v2 endpoints). Requires the projects OAuth scope.

Tool

Description

teamleader_list_projects

List projects with filtering (term, status, customer, deal, quotation) and pagination

teamleader_get_project

Get detailed info for a specific project

teamleader_create_project

Create a project (only title required); set start/end dates, budgets, billing method, owners, customer, assignee, links

teamleader_update_project

Update a project incl. adding/changing start & end dates, title, description, budgets

teamleader_close_project / teamleader_reopen_project

Close or reopen a project

teamleader_duplicate_project

Duplicate a project into a new one

teamleader_delete_project

Delete a project (requires a delete strategy)

teamleader_assign_project / teamleader_unassign_project

Assign/unassign a user or team

teamleader_add_project_owner / teamleader_remove_project_owner

Add/remove a project owner

teamleader_add_project_customer / teamleader_remove_project_customer

Add/remove a customer

teamleader_add_project_deal / teamleader_remove_project_deal

Link/unlink a deal

teamleader_add_project_quotation / teamleader_remove_project_quotation

Link/unlink a quotation

Tasks

Tool

Description

teamleader_list_tasks

List tasks with filtering and pagination

teamleader_get_task

Get detailed info for a specific task

teamleader_create_task

Create a task (title, due date, work type, assignee, customer, deal/project)

teamleader_update_task

Update a task

teamleader_complete_task / teamleader_reopen_task

Complete or reopen a task

teamleader_delete_task

Delete a task

teamleader_schedule_task

Schedule a task into the calendar (creates an event)

Events

Tool

Description

teamleader_list_events

List calendar events with date range filtering

teamleader_get_event

Get detailed info for a specific event

teamleader_create_event

Create a new calendar event (attendees, links, work type)

teamleader_update_event

Update a calendar event

teamleader_cancel_event

Cancel a calendar event for all attendees

Invoices

Tool

Description

teamleader_list_invoices

List invoices with filtering (status, date range, department)

teamleader_get_invoice

Get detailed info for a specific invoice

teamleader_create_invoice

Create a new draft invoice with line items

teamleader_update_invoice

Update a draft invoice: change invoice date, note, customer, payment term, PO number, project, or line items

teamleader_delete_invoice

Delete an invoice (drafts or the last booked invoice)

teamleader_book_invoice

Book (finalize) a draft invoice on a given date

Quotations

Tool

Description

teamleader_list_quotations

List quotations with filtering and pagination

teamleader_get_quotation

Get detailed info for a specific quotation

teamleader_create_quotation

Create a quotation on a deal with line items

teamleader_update_quotation

Update a quotation (currency, text, expiry, line items)

teamleader_accept_quotation

Mark a quotation as accepted

teamleader_send_quotation

Send quotations by email (CloudSign link via #LINK)

teamleader_download_quotation

Get a temporary PDF download URL

teamleader_delete_quotation

Delete a quotation

Time Tracking

This is how you log timesheets/effort in Teamleader.

Teamleader logs time against a subject β€” one of company, contact, event, milestone, nextgenTask, ticket, or todo. Note there's no direct project or deal subject type: to log time "on a project," log it against a task/todo/milestone that belongs to that project.

Tool

Description

teamleader_list_time_tracking

List logged time entries, filterable by user, subject, or date range

teamleader_get_time_tracking

Get detailed info for a specific time-tracking entry

teamleader_add_time_tracking

Log time (e.g. "1 hour of effort") against a subject β€” accepts duration_minutes or duration_seconds

teamleader_update_time_tracking

Update an existing entry (duration, description, work type, subject, start time, invoiceable)

teamleader_delete_time_tracking

Delete a time-tracking entry

Notes

Tool

Description

teamleader_list_notes

List notes on a subject (contact, company, deal, project, invoice, quotation...)

teamleader_create_note

Add a note to a subject (optionally notify users)

teamleader_update_note

Update a note's content

Lookups & Configuration

Read-only helpers that surface the IDs required by the create/update tools.

Tool

Description

teamleader_get_current_user

Current authenticated user (your user ID, account, timezone)

teamleader_list_users / teamleader_list_teams

Users and teams (for responsible/assignee/owner IDs)

teamleader_list_departments

Departments / company entities

teamleader_list_work_types

Work types (for tasks, events, time tracking)

teamleader_list_activity_types

Activity types (task/meeting/call) for events

teamleader_list_tax_rates

Tax rates (for invoice/quotation line items)

teamleader_list_products / teamleader_get_product

Products (for line items)

teamleader_list_product_categories

Product categories

teamleader_list_deal_phases

Deal phases (for creating/moving deals)

teamleader_list_deal_pipelines

Deal pipelines (incl. default)

teamleader_list_deal_sources

Deal sources

teamleader_list_lost_reasons

Lost reasons (for losing deals)

teamleader_list_custom_field_definitions

Custom field definitions and options per context

Not Yet Covered

The following Teamleader API areas are not (yet) exposed as tools. Ask to add any you need: credit notes, subscriptions, payment terms/methods, commercial & withholding tax discounts, price lists, units of measure, live timers (timers.* β€” start/stop/current, as opposed to the timeTracking.* tools which are covered), files, tickets, meetings & calls, mail templates, business types, legacy projects & milestones, and next-gen project groups/tasks/materials/lines (only the project entity itself is covered so far).

Example Prompts

Once configured, you can ask your AI assistant things like:

  • "List all my contacts tagged with 'VIP'"

  • "Create a new company called Acme Corp with email info@acme.example.com"

  • "Show me all open deals worth more than €10,000"

  • "Create a task to follow up with contact John Doe by next Friday"

  • "Log 1 hour of effort on task X for today"

  • "How many hours did I log this week?"

  • "List all unpaid invoices from this month"

  • "Create a draft invoice for company X with 2 line items"

API Reference

This MCP server wraps the Teamleader Focus API. Key details:

  • Base URL: https://api.focus.teamleader.eu

  • Authentication: OAuth2 with automatic token refresh

  • All endpoints use POST with JSON body

  • Pagination: Uses page.number and page.size parameters

License

Made with ❀️ by Growing Pai

Available Tools

71 tools
teamleader_add_project_customerB

Add a customer (contact or company) to a project.

Inputs: id (required), customer_id (required), customer_type (required).

teamleader_add_project_dealC

Link a deal to a project.

Inputs: id (required), deal_id (required).

teamleader_add_project_ownerC

Add a user as an owner of a project.

Inputs: id (required), user_id (required).

teamleader_add_project_quotationC

Link a quotation to a project.

Inputs: id (required), quotation_id (required).

teamleader_add_time_trackingA

Log time worked (e.g. '1 hour of effort') against a subject such as a task/todo, ticket, milestone, event, company, or contact. Provide either duration_minutes or duration_seconds together with started_at. Note: Teamleader splits an entry that spans midnight into multiple entries automatically.

Inputs: started_at (required), subject_id (required), subject_type (required), user_id, +5 more.

teamleader_assign_projectB

Assign a user or team to a project.

Inputs: id (required), assignee_id (required), assignee_type (required).

teamleader_cancel_eventA
Destructive

Cancel a calendar event for all attendees.

Inputs: id (required).

teamleader_close_projectB

Mark a project as closed.

Inputs: id (required), closing_strategy.

teamleader_complete_taskB

Mark a task as complete.

Inputs: id (required).

teamleader_create_companyC

Create a new company in Teamleader Focus

Inputs: name (required), tags, email, phone, +3 more.

teamleader_create_contactC

Create a new contact in Teamleader Focus

Inputs: last_name (required), first_name (required), tags, email, +4 more.

teamleader_create_eventB

Create a new calendar event in Teamleader Focus

Inputs: title (required), ends_at (required), starts_at (required), activity_type_id (required), +5 more.

teamleader_create_noteB

Add a note to a subject (contact, company, deal, project, invoice, quotation, etc.). Optionally notify users.

Inputs: content (required), subject_id (required), subject_type (required), notify_user_ids.

teamleader_create_projectA

Create a new project in Teamleader Focus (next-gen projects module). Only 'title' is required; everything else is optional. Set start_date/end_date to schedule the project. The creating user is automatically added as an owner.

Inputs: title (required), color, deal_ids, end_date, +19 more.

teamleader_create_taskC

Create a new task in Teamleader Focus

Inputs: title (required), due_on (required), deal_id, project_id, +6 more.

teamleader_delete_companyA
Destructive

Delete a company from Teamleader Focus. This is irreversible.

Inputs: id (required).

teamleader_delete_contactA
Destructive

Delete a contact from Teamleader Focus. This is irreversible.

Inputs: id (required).

teamleader_delete_projectA
Destructive

Delete a project. Requires a delete strategy to decide what happens to linked tasks and time trackings. This is irreversible.

Inputs: id (required), delete_strategy (required).

teamleader_delete_taskA
Destructive

Delete a task. This is irreversible.

Inputs: id (required).

teamleader_delete_time_trackingA
Destructive

Delete a time-tracking entry. This is irreversible.

Inputs: id (required).

teamleader_duplicate_projectA

Duplicate an existing project into a new project with the given title.

Inputs: id (required), title (required).

teamleader_get_companyB

Get detailed information about a specific company

Inputs: id (required).

teamleader_get_contactB

Get detailed information about a specific contact

Inputs: id (required).

teamleader_get_current_userA

Get the currently authenticated Teamleader user (useful to find your own user ID, account, language and timezone).

Inputs: no named parameters.

teamleader_get_eventA

Get detailed information about a specific event

Inputs: id (required).

teamleader_get_productA

Get details for a single product, including selling price, tax rate and category.

Inputs: id (required).

teamleader_get_projectB

Get detailed information about a specific project.

Inputs: id (required).

teamleader_get_taskA

Get detailed information about a specific task.

Inputs: id (required).

teamleader_get_time_trackingA

Get detailed information about a specific time-tracking entry.

Inputs: id (required).

teamleader_list_activity_typesA

List activity types (task, meeting, call). Use to find activity_type_id when creating events.

Inputs: page, page_size.

teamleader_list_companiesA

List companies from Teamleader Focus with optional filtering and pagination

Inputs: page, tags, term, page_size, +2 more.

teamleader_list_contactsB

List contacts from Teamleader Focus with optional filtering and pagination

Inputs: page, tags, term, page_size, +1 more.

teamleader_list_custom_field_definitionsA

List custom field definitions. Use to discover custom field IDs and their configuration (options for select fields) per context (contact, company, deal, project, invoice, etc.).

Inputs: page, context, page_size.

teamleader_list_deal_phasesA

List deal phases (stages), sorted by their order in the flow. Use to find phase_id for creating deals or moving them. Optionally filter by pipeline.

Inputs: page, page_size, deal_pipeline_id.

teamleader_list_deal_pipelinesA

List deal pipelines. The response meta includes the default pipeline ID. Use to find pipeline/phase IDs.

Inputs: page, page_size.

teamleader_list_deal_sourcesA

List deal sources. Use to find source_id when creating/updating deals.

Inputs: page, page_size.

teamleader_list_departmentsA

List departments (company entities). Use to find department_id for invoices, quotations, projects, tax rates.

Inputs: page, page_size.

teamleader_list_eventsC

List calendar events from Teamleader Focus with optional filtering and pagination

Inputs: page, page_size, ends_after, ends_before, +2 more.

teamleader_list_lost_reasonsA

List lost reasons for deals. Use to find reason_id when marking a deal as lost.

Inputs: page, page_size.

teamleader_list_notesB

List notes attached to a specific subject (e.g. a contact, company, deal or project).

Inputs: subject_id (required), subject_type (required), page, page_size.

teamleader_list_product_categoriesB

List product categories. Use to find product_category_id. Optionally filter by department.

Inputs: page, page_size, department_id.

teamleader_list_productsA

List products. Use to find product_id for invoice/quotation line items.

Inputs: page, term, page_size.

teamleader_list_projectsB

List projects from the Teamleader Focus (next-gen) projects module, with optional filtering and pagination.

Inputs: page, term, status, deal_id, +4 more.

teamleader_list_tasksB

List tasks from Teamleader Focus with optional filtering and pagination

Inputs: page, term, page_size, customer_id, +1 more.

teamleader_list_tax_ratesA

List available tax rates. Use to find tax_rate_id for invoice and quotation line items. Optionally filter by department.

Inputs: page, page_size, department_id.

teamleader_list_teamsB

List teams in the Teamleader account (with members and team lead).

Inputs: page, term, page_size.

teamleader_list_time_trackingC

List logged time-tracking entries, optionally filtered by user, subject, or date range.

Inputs: ids, page, user_id, page_size, +6 more.

teamleader_list_usersA

List users (co-workers) in the Teamleader account. Use to find user IDs for responsible_user_id / assignee / owner fields.

Inputs: page, term, page_size.

teamleader_list_work_typesA

List work types. Use to find work_type_id for tasks, events and time tracking.

Inputs: page, term, page_size.

teamleader_remove_project_customerB

Remove a customer (contact or company) from a project.

Inputs: id (required), customer_id (required), customer_type (required).

teamleader_remove_project_dealA

Unlink a deal from a project.

Inputs: id (required), deal_id (required).

teamleader_remove_project_ownerB

Remove a user as an owner of a project.

Inputs: id (required), user_id (required).

teamleader_remove_project_quotationB

Unlink a quotation from a project.

Inputs: id (required), quotation_id (required).

teamleader_reopen_projectB

Reopen a previously closed project.

Inputs: id (required).

teamleader_reopen_taskA

Reopen a task that had been marked as complete.

Inputs: id (required).

teamleader_schedule_taskA

Schedule a task in the calendar by giving it a start and end time. Returns the created calendar event.

Inputs: id (required), ends_at (required), starts_at (required).

teamleader_tag_companyA

Add one or more tags to a company (creates the tag if it doesn't exist). Does not overwrite existing tags.

Inputs: id (required), tags (required).

teamleader_tag_contactA

Add one or more tags to a contact (creates the tag if it doesn't exist). Unlike update, this does not overwrite existing tags.

Inputs: id (required), tags (required).

teamleader_unassign_projectB

Unassign a user or team from a project.

Inputs: id (required), assignee_id (required), assignee_type (required).

teamleader_untag_companyB

Remove one or more tags from a company.

Inputs: id (required), tags (required).

teamleader_untag_contactB

Remove one or more tags from a contact.

Inputs: id (required), tags (required).

teamleader_update_companyC

Update an existing company in Teamleader Focus.

Inputs: id (required), name, tags, email, +7 more.

teamleader_update_contactC

Update an existing contact in Teamleader Focus

Inputs: id (required), tags, email, phone, +5 more.

teamleader_update_eventC

Update a calendar event (title, description, times, location, work type, attendees, links).

Inputs: id (required), links, title, ends_at, +5 more.

teamleader_update_noteB

Update the content of an existing note.

Inputs: id (required), content (required).

teamleader_update_projectA

Update an existing project. All fields except 'id' are optional. Use this to add or change the project's start_date/end_date, title, description, budgets, etc.

Inputs: id (required), color, title, end_date, +14 more.

teamleader_update_taskB

Update an existing task (title, description, due date, work type, assignee, customer, linked deal/project).

Inputs: id (required), title, due_on, deal_id, +7 more.

teamleader_update_time_trackingC

Update an existing time-tracking entry (duration, description, work type, subject, started_at, invoiceable).

Inputs: id (required), started_at, subject_id, description, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 71 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action, with clear descriptions. Even with 71 tools, there is no ambiguityβ€”e.g., list_time_tracking vs get_time_tracking, create_task vs schedule_task, and all reference list tools are uniquely scoped.

    Naming Consistency5/5

    All tools follow a consistent 'teamleader_verb_noun' pattern. Verbs like list, get, create, update, delete, tag, untag, link, unlink, complete, reopen, schedule, assign, add, remove are used uniformly, with no mixed conventions.

    Tool Count4/5

    71 tools is high, but the server covers a comprehensive CRM API (contacts, companies, projects, tasks, events, time tracking, notes, plus many reference-data lists). Each tool serves a distinct purpose, so the count is justified for the broad scope, though it exceeds typical ranges.

    Completeness3/5

    The server provides solid CRUD for contacts, companies, projects, tasks, events, and time tracking, plus notes (but no delete). However, deal management (create/update/delete deals) is absent, and invoice/quotation CRUD is missingβ€”only linking to projects is supported. These are notable gaps for a full Teamleader Focus integration.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      C
      quality
      Not graded
      maintenance
      Enables AI assistants to securely access and interact with Simplicate business data including CRM, projects, timesheets, and invoices through natural language. Supports searching across resources and retrieving detailed information about organizations, contacts, and project data.
      59
      0
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects AI assistants to Freshsales CRM, enabling natural language queries and CRUD operations on contacts, deals, accounts, and more.
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables 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.
      -