Skip to main content
Glama
freshdesk-mcp-server

freshdesk-mcp-server

by bcavas

freshdesk-mcp-server

npm version License: MIT Node.js 20+ Deploy to Cloud Run

Enterprise-grade MCP (Model Context Protocol) server for Freshdesk. Gives AI agents (Claude, GPT-4, Gemini, etc.) full agentic access to your Freshdesk helpdesk — read and write tickets, contacts, knowledge base articles, and more.

33+ tools across 5 configurable toolsets. Dual transport: stdio (local) and Streamable HTTP (remote/cloud). Production-ready with rate limiting, retry logic, caching, PII redaction, and prompt injection protection.


Quick Start

Claude Desktop (stdio)

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "freshdesk": {
      "command": "npx",
      "args": ["freshdesk-mcp-server"],
      "env": {
        "FRESHDESK_DOMAIN": "yourcompany",
        "FRESHDESK_API_KEY": "your_api_key"
      }
    }
  }
}

Remote / Cloud (Streamable HTTP)

{
  "mcpServers": {
    "freshdesk": {
      "url": "https://freshdesk-mcp-server-REPLACE_WITH_HASH-REPLACE_WITH_REGION.a.run.app/mcp"
    }
  }
}

Related MCP server: Freshservice MCP Server

Getting Your API Key

  1. Log in to Freshdesk

  2. Click your avatar (top right) → Profile Settings

  3. Scroll to Your API Key → Copy


Tool Reference

All 33+ tools in 5 toolsets. Enable specific toolsets via MCP_ENABLED_TOOLSETS.

CORE (always loaded — 15 tools)

Tool

Description

get_ticket

Get a ticket with optional sideloads (conversations, requester, stats)

list_tickets

List tickets with filters and sorting

search_tickets

Search with Freshdesk query language (status:2 AND priority:4)

create_ticket

Create a new ticket

update_ticket

Update status, priority, assignment, tags

reply_to_ticket

Send customer-facing reply

add_note

Add private/public agent note

list_conversations

Get full ticket thread

get_contact

Get a contact by ID

list_contacts

List contacts with filtering

search_contacts

Search contacts

create_contact

Create a new contact

update_contact

Update contact details

list_agents

List agents by type and group

get_agent

Get agent profile

KB (opt-in — 9 tools)

Solution articles, folders, categories, and canned responses.

Analytics (opt-in — 4 tools)

CSAT satisfaction ratings and time tracking entries.

Bulk (opt-in — 3 tools)

Bulk update up to 25 tickets, delete tickets, merge contacts.

Admin (opt-in — 4 tools)

Groups, ticket fields, SLA policies, and automation rules.

See docs/TOOLS.md for the complete reference.


Configuration

Variable

Default

Required

Description

FRESHDESK_DOMAIN

—

✅

Your Freshdesk subdomain

FRESHDESK_API_KEY

—

✅

Your Freshdesk API key

MCP_TRANSPORT

streamable-http

streamable-http or stdio

MCP_PORT

3000

HTTP port (remote mode)

MCP_ENABLED_TOOLSETS

core

Comma-separated: core,kb,analytics,bulk,admin

RATE_LIMIT_BUFFER_PERCENT

20

Stop at this % of rate limit remaining

LOG_LEVEL

info

trace/debug/info/warn/error

REDACT_FIELDS

phone,mobile,twitter_id

PII fields to redact from responses

See docs/CONFIGURATION.md for full reference.


Toolset Selection

# Core only (recommended for most use cases)
MCP_ENABLED_TOOLSETS=core

# Add knowledge base tools
MCP_ENABLED_TOOLSETS=core,kb

# Everything
MCP_ENABLED_TOOLSETS=core,kb,analytics,bulk,admin

Cloud Run Deployment

Deploy to Google Cloud Run using the one-time setup script and GitHub Actions CI/CD:

# One-time setup — provisions all required Google Cloud resources
GITHUB_REPO="YOUR_ORG/freshdesk-mcp-server" bash infra/cloud-run/setup.sh

# Add the four output values as GitHub Actions secrets, then push to main:
git push origin main

See docs/DEPLOYMENT.md for full guide.


Security

  • PII Redaction: phone, mobile, and twitter_id fields are redacted from all API responses before they reach the LLM. Configurable via REDACT_FIELDS.

  • Prompt Injection Detection: All tool inputs are scanned for injection patterns (<IMPORTANT>, ignore previous instructions, zero-width spaces, etc.).

  • Authentication: Uses Freshdesk API key via HTTP Basic Auth. Keep your API key in a secret manager (Google Cloud Secret Manager, not in env in production).

  • Rate Limiting: Proactive rate limit tracking using X-RateLimit-Remaining headers with a configurable buffer threshold.


Development

git clone https://github.com/YOUR_USERNAME/freshdesk-mcp-server
cd freshdesk-mcp-server
npm install
cp .env.example .env  # Fill in FRESHDESK_DOMAIN and FRESHDESK_API_KEY

# Development (watch mode)
npm run dev

# Run tests
npm test

# Type check
npm run typecheck

# Build
npm run build

# Inspect with MCP Inspector
npm run inspect

End-to-End Testing

We provide a comprehensive manual bash script to test the deployed Cloud Run service across all toolsets, verify HTTP validation, security, and (optionally) performance testing with k6.

# Basic run (skips Freshdesk API calls, k6 load testing, and GCP observability checks)
E2E_SERVICE_URL="https://your-service-url.run.app" ./tests/e2e/run-e2e.sh --skip-functional --skip-perf --skip-observability

# Full run (prompts before creating real test data in Freshdesk)
./tests/e2e/run-e2e.sh --url "https://your-service-url.run.app"

Use ./tests/e2e/run-e2e.sh --help to see all available CLI options.


Comparison

Feature

This Server

effytech

Enreign

Tools

33+

~10

~15

Toolsets

5 configurable

Fixed

Fixed

Streamable HTTP

✅

❌

❌

stdio

✅

✅

✅

PII Redaction

✅

❌

❌

Injection Protection

✅

❌

❌

Rate Limiting

✅

Partial

❌

Caching

✅

❌

❌

Cloud Run Deployment

✅ (IaC)

❌

❌

TypeScript

✅

✅

❌

Test Coverage

✅ 80%+

❌

❌


Contributing

  1. Fork the repo and create a feature branch

  2. Write tests for any new tools or behavior changes

  3. Run npm run typecheck && npm run lint && npm test — all must pass

  4. Submit a PR with a clear description of changes


License

MIT

Available Tools

15 tools
add_noteA

Add an internal note to a Freshdesk ticket. By default, notes are private (visible only to agents). Set private=false for customer-visible notes.

Inputs: body (required), ticket_id (required), private, notify_emails.

create_contactB

Create a new Freshdesk contact. At minimum, provide a name. Email is recommended for ticket routing.

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

create_ticketA

Create a new support ticket. Requires either email (auto-creates contact) or requester_id. Returns the created ticket with its ID. Use for programmatic ticket creation, not customer replies.

Inputs: subject (required), description (required), tags, type, +8 more.

get_agentA
Read-onlyIdempotent

Retrieve a single Freshdesk agent by ID with full profile details.

Inputs: agent_id (required).

get_contactB
Read-onlyIdempotent

Retrieve a single Freshdesk contact by ID.

Inputs: contact_id (required).

get_ticketA
Read-onlyIdempotent

Retrieve a single Freshdesk ticket by ID with optional related data (conversations, requester, company, stats). Use include=["stats"] to get SLA timestamps. Use include=["conversations"] to get the full thread.

Inputs: ticket_id (required), include.

list_agentsA
Read-onlyIdempotent

List all Freshdesk agents. Optionally filter by type (fulltime/occasional) or group. Results are cached for 1 hour.

Inputs: page, state, group_id.

list_contactsB
Read-onlyIdempotent

List Freshdesk contacts with optional filtering by email, phone, or company.

Inputs: page, email, phone, per_page, +1 more.

list_conversationsB
Read-onlyIdempotent

List all conversations (replies and notes) for a ticket. Returns the full email thread and any agent notes. Results are cached for 1 minute.

Inputs: ticket_id (required), page, per_page.

list_ticketsA
Read-onlyIdempotent

List Freshdesk tickets with filtering, sorting, and pagination. Returns up to 100 tickets per page. Use updated_since to get recent changes only. Default sort: newest first. Results are cached for 1 minute.

Inputs: page, filter, order_by, per_page, +2 more.

reply_to_ticketA

Send a reply to a Freshdesk ticket. The reply is sent to the requester and any CC/BCC addresses. Use HTML for formatting.

Inputs: body (required), ticket_id (required), cc_emails, bcc_emails.

search_contactsB
Read-onlyIdempotent

Search Freshdesk contacts by name, email, phone, or company.

Inputs: query (required), page.

search_ticketsA
Read-onlyIdempotent

Search tickets using Freshdesk query language. Max 300 results total (30/page × 10 pages). Query syntax: "status:2 AND priority:4" for open+urgent. Searchable: agent_id, group_id, priority, status, tag, type, due_by, fr_due_by, created_at, updated_at, requester_id, company_id. Date format: 'YYYY-MM-DD'.

Inputs: query (required), page.

update_contactC
Idempotent

Update a Freshdesk contact. Provide only the fields you want to change.

Inputs: contact_id (required), name, tags, email, +5 more.

update_ticketB
Idempotent

Update a ticket's properties (status, priority, assignment, tags, custom fields). Cannot update subject or description of outbound tickets. Provide only the fields you want to change.

Inputs: ticket_id (required), tags, type, status, +4 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 15 tools

    Disambiguation4/5

    Most tools map cleanly to a resource+action, but list_contacts (filter by email/phone/company) and search_contacts (search by name/email/phone/company) overlap substantially, forcing the agent to guess which to use. Similarly, get_ticket's include=["conversations"] option partially duplicates list_conversations. These are edge overlaps rather than systemic confusion.

    Naming Consistency5/5

    Uniform snake_case verb_noun pattern throughout: get_/list_/search_/create_/update_ across tickets, contacts, and agents, plus reply_to_ticket and add_note which fit the same verb-first convention. No mixing of styles or casing.

    Tool Count5/5

    15 tools sits squarely in the well-scoped range, and each maps to a distinct Freshdesk operation without filler. The ticket/contact/agent split with three actions per core resource is proportionate to the domain.

    Completeness4/5

    Contacts have full CRUD and tickets cover create/read/list/search/update plus reply and note, which handles the main support lifecycle. Gaps remain: no ticket delete, no conversation/note editing or attachment handling, no company or group endpoints (despite company filters appearing on contacts), and agents are read-only.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI models to interact with Freshservice IT service management platform, allowing automated ticket management, change requests, asset tracking, and solution article operations through natural language commands.
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to connect with Freshservice ITSM for managing tickets, assets, agents, and organizational data through natural language. It provides a comprehensive set of tools for performing CRUD operations on service desk records and searching across the Freshservice platform.
      53
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides AI assistants with structured access to the Freshdesk customer support platform, including tickets, contacts, companies, agents, groups, knowledge base, and SLA configuration. Features decision-tree navigation and destructive-action guardrails.
      Apache 2.0
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI agents to interact with Freshdesk, supporting ticket management, customer and company operations, agent lookup, and knowledge base search through natural language.
      19
      MIT