WorkestraDocs
IntegrationsMCP Server

MCP Server

Let AI agents interact with Workestra using our MCP server — 63 tools across CRM, invoicing, projects, tickets, analytics, recruiting, and more.

MCP Server (Model Context Protocol)

The Workestra MCP server provides 63 tools across 13 feature groups that AI agents can use to interact with your workspace data — CRM, invoicing, tickets, projects, analytics, recruiting, knowledge base, quotations, and more — all secured by your Workestra API key.

What is MCP?

MCP (Model Context Protocol) is an open standard that lets AI tools like Claude, Cursor, and VS Code Copilot discover and call functions on external systems. Once connected, your AI assistant can directly search contacts, create deals, manage tickets, track projects, analyze revenue, and more — without copy-pasting data or building custom integrations.

Authentication

The MCP server uses your Workestra API key for authentication. Your API key is the only credential you need — it automatically determines which workspace you access and what operations are allowed.

Creating an API Key

  1. Go to Settings → Administration → API in the Workestra dashboard
  2. Click Create API Key
  3. Name your key (e.g., "Claude Code MCP")
  4. Select the permissions you need:
    • Read permissions for search and viewing data
    • Create permissions for adding new records
    • Update permissions for modifying existing records
    • Delete permissions for removing records
  5. Copy your key — it starts with sk_live_ and is only shown once

How It Works

Your machine                        Workestra
┌─────────────────────┐            ┌──────────────────┐
│ Claude / Cursor      │            │                  │
│   ↕ stdio            │            │  api_keys table  │
│ workestra-mcp server │──verify──▶│  (SHA-256 hash)  │
│   (runs locally)     │            │       ↓          │
│                      │──query───▶│  workspace data  │
└─────────────────────┘            └──────────────────┘
  1. You provide your API key (sk_live_...)
  2. The server hashes it and verifies it against the api_keys table
  3. Your workspace ID is resolved from the key — all queries are scoped automatically
  4. Permissions on the key control which tools are allowed
  5. A user can only access the workspace their API key belongs to

Security Best Practices

  • Use separate API keys for each AI tool or agent
  • Grant only the permissions your workflow requires
  • Enable read-only mode when you only need to query data
  • Set expiration dates for temporary access
  • Revoke keys immediately if compromised

Connect to the MCP Server

Cursor

Add to your ~/.cursor/mcp.json:

{
  "mcpServers": {
    "workestra": {
      "command": "npx",
      "args": ["-y", "@workestra/mcp"],
      "env": {
        "WORKESTRA_API_KEY": "sk_live_your-key-here"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json in your workspace:

{
  "servers": {
    "workestra": {
      "command": "npx",
      "args": ["-y", "@workestra/mcp"],
      "env": {
        "WORKESTRA_API_KEY": "sk_live_your-key-here"
      }
    }
  }
}

Claude Code

claude mcp add workestra -- npx -y @workestra/mcp --api-key=sk_live_your-key-here

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "workestra": {
      "command": "npx",
      "args": ["-y", "@workestra/mcp", "--api-key=sk_live_your-key-here"]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "workestra": {
      "command": "npx",
      "args": ["-y", "@workestra/mcp"],
      "env": {
        "WORKESTRA_API_KEY": "sk_live_your-key-here"
      }
    }
  }
}

ChatGPT / Other Clients

MCP is an open protocol supported by many clients. The server accepts the WORKESTRA_API_KEY environment variable or the --api-key CLI flag.

CLI Options

npx -y @workestra/mcp [options]
OptionDescription
--api-key=KEYYour Workestra API key (required)
--read-onlyBlock all write operations
--features=LISTComma-separated feature groups (default: all)
--versionShow version
--helpShow help

Feature Groups

Control which tools are available:

FeatureToolsDescription
contacts5 toolsContact search, CRUD operations
deals5 toolsDeal management, pipeline summary
companies4 toolsCompany search, CRUD operations
activities4 toolsActivity logging (calls, emails, meetings)
pipeline2 toolsPipeline stages, CRM dashboard
invoicing6 toolsInvoices, products, stats
tickets4 toolsSupport ticket management
projects6 toolsProjects, tasks, cross-module search
analytics6 toolsPipeline, revenue, forecast, support, expenses, aging
recruiting6 toolsJobs, candidates, application status, metrics
knowledge5 toolsKnowledge base search, documents, AI suggestions
quotations4 toolsQuotation management and stats
workspace6 toolsTeam members, teams, users, audit log, bulk operations

Example — enable only contacts and deals:

npx -y @workestra/mcp --api-key=sk_live_... --features=contacts,deals

Example — enable CRM and support tools:

npx -y @workestra/mcp --api-key=sk_live_... --features=contacts,deals,companies,activities,pipeline,tickets

Tools

Contacts

ToolDescription
search_contactsSearch contacts by name, email, job title with filters
get_contactGet detailed contact information by ID
create_contactCreate a new contact or lead
update_contactUpdate a contact's fields
delete_contactDelete a contact

Deals

ToolDescription
list_dealsList deals with status, stage, value, and date filters
get_dealGet detailed deal information
create_dealCreate a new deal/opportunity
update_dealUpdate deal fields (auto-sets close dates)
get_pipeline_summaryPipeline breakdown by stage with counts and values

Companies

ToolDescription
search_companiesSearch companies by name, industry, website
get_companyGet detailed company information
create_companyCreate a new company/account
update_companyUpdate company fields

Activities

ToolDescription
list_activitiesList calls, emails, meetings, tasks, and notes
get_activityGet detailed activity information
create_activityLog a new activity
complete_activityMark an activity as completed with outcome

Pipeline & Dashboard

ToolDescription
list_pipeline_stagesList all configured pipeline stages
get_crm_dashboardFull CRM metrics: contacts, deals, activities, pipeline

Invoicing

ToolDescription
list_invoicesList invoices with status, date, and client filters
get_invoiceGet detailed invoice information by ID
create_invoiceCreate a new invoice
get_invoice_statsInvoice totals, overdue amounts, and status breakdown
list_productsList available products and services
get_productGet detailed product information

Tickets

ToolDescription
list_ticketsList support tickets with status, priority, and assignee filters
get_ticketGet detailed ticket information by ID
create_ticketCreate a new support ticket
update_ticketUpdate ticket fields (status, priority, assignee, etc.)

Projects

ToolDescription
list_projectsList projects with status and date filters
get_projectGet detailed project information by ID
list_tasksList tasks with project, status, and assignee filters
create_taskCreate a new task in a project
update_taskUpdate task fields (status, assignee, due date, etc.)
search_allCross-module search across contacts, deals, tickets, tasks, and more

Analytics

ToolDescription
get_pipeline_analyticsPipeline conversion rates, stage velocity, bottlenecks
get_revenue_metricsRevenue totals, MRR, growth trends
get_sales_forecastWeighted pipeline forecast and win probability
get_support_metricsTicket volume, resolution times, SLA compliance
get_expense_summaryExpense totals by category and period
get_invoice_agingOutstanding invoice aging buckets (30/60/90+ days)

Recruiting

ToolDescription
list_jobsList job offers with status and department filters
get_jobGet detailed job offer information by ID
list_candidatesList candidates with job, stage, and status filters
get_candidateGet detailed candidate information by ID
update_application_statusMove a candidate to a new pipeline stage
get_recruiting_metricsHiring funnel, time-to-hire, source effectiveness

Knowledge Base

ToolDescription
search_knowledge_baseSemantic search across knowledge base documents
get_documentGet a knowledge base document by ID
list_knowledge_baseList all knowledge base documents
get_ai_suggestionsGet AI-generated proactive suggestions
acknowledge_suggestionMark an AI suggestion as acknowledged or dismissed

Quotations

ToolDescription
list_quotationsList quotations with status, date, and client filters
get_quotationGet detailed quotation information by ID
create_quotationCreate a new quotation
get_quotation_statsQuotation totals, acceptance rates, and status breakdown

Workspace

ToolDescription
list_team_membersList all members in the workspace
list_teamsList all teams in the workspace
get_userGet detailed user profile information
get_audit_logRetrieve audit log entries with date and action filters
bulk_update_contactsBulk update fields on multiple contacts
bulk_update_dealsBulk update fields on multiple deals

Permissions

Each tool requires specific permissions on your API key:

PermissionTools
read_contactssearch_contacts, get_contact
create_contactscreate_contact
update_contactsupdate_contact, bulk_update_contacts
delete_contactsdelete_contact
read_dealslist_deals, get_deal, get_pipeline_summary, get_pipeline_analytics, get_revenue_metrics, get_sales_forecast
create_dealscreate_deal
update_dealsupdate_deal, bulk_update_deals
read_companiessearch_companies, get_company
create_companiescreate_company
update_companiesupdate_company
read_activitieslist_activities, get_activity
create_activitiescreate_activity
update_activitiescomplete_activity
read_pipelinelist_pipeline_stages
read_dashboardget_crm_dashboard
read_invoiceslist_invoices, get_invoice, get_invoice_stats, get_invoice_aging
create_invoicescreate_invoice
read_productslist_products, get_product
read_ticketslist_tickets, get_ticket, get_support_metrics
create_ticketscreate_ticket
update_ticketsupdate_ticket
read_projectslist_projects, get_project, search_all
read_taskslist_tasks
create_taskscreate_task
update_tasksupdate_task
read_expensesget_expense_summary
read_jobslist_jobs, get_job, get_recruiting_metrics
read_candidateslist_candidates, get_candidate
update_candidatesupdate_application_status
read_knowledge_basesearch_knowledge_base, get_document, list_knowledge_base, get_ai_suggestions, acknowledge_suggestion
read_quotationslist_quotations, get_quotation, get_quotation_stats
create_quotationscreate_quotation
read_teamslist_team_members, list_teams, get_user, get_audit_log

Building Autonomous Agents

Pass a Workestra API key with restricted permissions when spawning the MCP server:

npx -y @workestra/mcp --api-key=sk_live_your-key --read-only --features=contacts,deals

Read-Only Mode

Use --read-only to prevent any write operations:

npx -y @workestra/mcp --api-key=sk_live_your-key --read-only

Managing API Keys

API keys are managed at Settings → Administration → API in the Workestra dashboard.

Each API key has:

  • Granular permissions — control read/create/update/delete per entity type
  • Workspace scoping — automatically limits all queries to your workspace
  • Expiration dates — optional, for time-limited access
  • Usage tracking — last used timestamp and audit logs
  • Instant revocation — delete a key to revoke access immediately

Example Prompts

Once connected, try these prompts in your AI assistant:

  • "Show me all leads that were created this month"
  • "Create a new contact for John Smith at Acme Corp"
  • "What's the total value of our open deals?"
  • "Move the Acme deal to the proposal stage"
  • "Show me my pipeline summary"
  • "List all activities for this week"
  • "Create a follow-up call for tomorrow with Sarah"
  • "What are my overdue invoices?"
  • "Show me all open support tickets assigned to me"
  • "Create a task in the Q2 Launch project"
  • "What's our revenue trend this quarter?"
  • "List candidates in the interview stage for the Senior Engineer role"
  • "Search the knowledge base for onboarding guides"
  • "Show me the sales forecast for this month"