# TypeScript MCP server examples

> Complete MCP servers in TypeScript, built with FrontMCP, that you can run in your browser, each with its tests and a walkthrough of how it's built.

Source: https://frontmcp.dev/examples

[Covers FrontMCP 1.15.2](https://frontmcp.dev/versions#how-pages-are-checked) as of December 4, 2026

Each example here is a whole FrontMCP server: several files, the tools, resources, jobs or agents it needs, and tests that check it works. It runs in the Playground, like every example on this site, so you can open it, call its tools, change the code and run the tests without installing anything.

Every example page starts with the server, then walks through it file by file, with links to the lessons that explain each part. To learn FrontMCP from the beginning, start with the [Quick Start](https://frontmcp.dev/learn) instead.

<a id="example-servers"></a>

## Example servers

### [Nightly Ticket Report](https://frontmcp.dev/examples/nightly-ticket-report)

*[Illustration: The Nightly Ticket Report, in eight steps: start_nightly_report starts the nightly-report workflow in the background and returns at once; its jobs collect the day's tickets, find the SLA breaches, write the report and save it, and email the team lead, trying again when the mail server is busy; get_nightly_report reads the saved report.]*

A workflow that collects yesterday's tickets, works out which ones broke their SLA, and writes a report, with a [job](https://frontmcp.dev/learn/your-first-job) per step, started [in the background](https://frontmcp.dev/learn/running-jobs-in-the-background) by a tool.

### [Triage Agent](https://frontmcp.dev/examples/triage-agent)

*[Illustration: The Triage Agent, in seven steps: the client's model calls invoke_triage for each new ticket; the agent refuses a missing or triaged ticket, then takes four turns with its own model, running get_ticket, then get_customer and search_tickets, then set_priority and assign_ticket, and returns the priority, team and reason, checked against outputSchema.]*

An [agent](https://frontmcp.dev/learn/your-first-agent) that reads a new ticket and its customer, looks for related tickets, then sets the priority and the team with its own private tools. A [skill](https://frontmcp.dev/learn/teaching-the-model-skills) tells the client's model how to triage the whole queue.

### [Research Assistant](https://frontmcp.dev/examples/research-assistant)

*[Illustration: The Research Assistant, in nine steps: the client's model calls invoke_research; research hands the searching to the hidden find_sources agent, whose model asks for both searches; research drops ids that don't exist, has its own model write claims from each source's text, checks every cited id, and returns the claims as structuredContent.]*

An [agent](https://frontmcp.dev/learn/your-first-agent) that answers a hard support question from knowledge-base articles and closed tickets, with every claim citing the ids it came from. It [hands the searching to another agent](https://frontmcp.dev/learn/agents-that-call-agents), drops ids that don't exist, and refuses a claim that cites a source it wasn't given. The articles and tickets are also [resources](https://frontmcp.dev/learn/exposing-data-with-resources), so a client can open whatever an answer cites.

### [Order Tracker Widget](https://frontmcp.dev/examples/order-tracker-widget)

*[Illustration: The Order Tracker, in eight steps: track_order answers with data for the model and a page for the host, which shows it in a frame; a button in the page asks the host to call open_late_order_ticket, and the answer, ticket T-8, or the refusal comes back as a tool:success event and shows in the page.]*

A help desk tool that answers a support agent's "where's my order?" with the order and its shipping timeline as data, and as a [widget](https://frontmcp.dev/learn/your-first-widget) with buttons that call more tools through the host. Their answers update the page, refusals included.

### [Expense Dashboard](https://frontmcp.dev/examples/expense-dashboard)

*[Illustration: The Expense Dashboard, in eight steps: the server renders one page at startup, with no data; the host reads it once, shows it in a frame and hands it each expense_report result, which carries data only; the widget's filters ask the host to call the tool again, and a refusal shows its message.]*

A dashboard of what support spent in a month on refunds, credits and goodwill, as a [static widget](https://frontmcp.dev/learn/choosing-how-a-widget-is-served#static-one-page-the-data-from-the-host): one page, served once, that draws each result. Its month and team filters call the tool again, and `outputSchema` keeps the internal notes out.

### [CRM with CodeCall](https://frontmcp.dev/examples/crm-with-codecall)

*[Illustration: The CRM with CodeCall, in eight steps: the model is listed nine tools, searches for the ones it needs, reads their schemas, and sends one script; it runs in a sandbox on the server, makes eight calls to the CRM's tools, can't reach the destructive ones, and returns only Acme and Hooli with their tickets and managers.]*

A help desk CRM with 47 tools, put behind the [CodeCall plugin](https://frontmcp.dev/learn/letting-the-model-write-code-with-codecall). A model searches for the tools it needs, reads their schemas, and answers "which enterprise customers have a stale high-priority ticket, and who manages them" with one script on the server. Destructive tools stay out of the script's reach.

### [Pet Store from OpenAPI](https://frontmcp.dev/examples/pet-store-from-openapi)

*[Illustration: The Pet Store, in nine steps: the adapter makes four tools from the Petstore spec and leaves its three writes out; the model calls get_pet, the server sends the API's credentials and adds a hint to the 404 it gets back; then the model calls our own search_pets, which filters the available pets down to Whiskers and Milo.]*

A help desk server that wraps the classic Swagger Petstore with the [OpenAPI adapter](https://frontmcp.dev/learn/wrapping-an-openapi-service), then makes it fit for a model: clear tool names and descriptions, the API's keys sent by the server, writes left out, errors with a next step, and a search tool of its own.

<a id="reporting-outside-the-help-desk"></a>

## Reporting outside the help desk

[Two-tenant reporting](https://frontmcp.dev/examples/tenant-reporting) uses synthetic records, server-side credentials and negative access tests. Download its pinned project to run the same files locally.
