Fastmcp Ts logo

Fastmcp Ts

Build TypeScript MCP servers, clients, and interactive apps with tools, resources, prompts, middleware, and UI components.

Install Fastmcp Ts

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://fastmcp-ts.docs.prefect.io/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Claude Code command
claude mcp add --transport http fastmcp-ts https://fastmcp-ts.docs.prefect.io/mcp

Run in your terminal, then run /mcp in Claude Code to sign in if the server asks.

Hosted endpointLive · 6d agoLive Remote EndpointOur automated health check connected to this remote MCP endpoint successfully.Last checked 6d ago · Nov 29, 2026, 16:00 UTC

Clients with native remote MCP support can connect directly to this URL.

Remote endpoint
https://fastmcp-ts.docs.prefect.io/mcp

Overview

fastmcp-ts is a TypeScript framework for building MCP servers, clients, and interactive applications. It wraps the official MCP TypeScript SDK and turns functions into tools, resources, and prompts with schemas inferred from Standard Schema libraries. Servers use stdio by default or HTTP when configured, while clients can connect to one or multiple MCP servers. Reach for it when you need a TypeScript-native MCP implementation with middleware, authentication, server composition, LLM sampling, or server-rendered UI.

Use cases

  • Build TypeScript MCP servers with typed tool inputs
  • Expose multiple MCP backends through one namespaced gateway
  • Connect an MCP client to tools, resources, and prompts
  • Create interactive MCP-hosted search and data-entry interfaces

Key features

  • TypeScript server and client APIs
  • Standard Schema input inference
  • stdio and HTTP transports
  • Middleware and JWT authentication
  • Multi-server composition and proxying
  • Interactive MCP UI components

Tools3

What Fastmcp Ts lets your agent do. Expand a tool for its parameters.

Verified live~1.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

5/5 checks healthy over the last 17d

What it can do

From the 3 tools this server returned when we ran it.

Runs commands · 1Makes changes · 1Handles credentials · 1Makes network requests · 1Read-only tools · 1

Observed 2026-11-26 in an isolated sandbox. A description of reach, not a security audit.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars98Stargazers on the source repository.
Last commit10d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Tools exposed3Callable tools this server registers over MCP.

How Fastmcp Ts works

What fastmcp-ts does

fastmcp-ts provides the building blocks for creating MCP servers, MCP clients, and applications in TypeScript. A server can expose ordinary functions as tools, static or parameterized data as resources, and reusable prompt templates. Input definitions can use Standard Schema-compatible libraries such as Zod, Valibot, or ArkType, allowing the framework to infer tool schemas.

The package also includes a server-side UI component library. Applications can expose an LLM-visible entrypoint that renders components such as text, inputs, buttons, columns, rows, and tables. Backend tools can remain available only to the rendered interface. Built-in providers cover approvals, choices, file uploads, validated forms, and generative UI.

How it works

Install the npm package and create a FastMCP instance with a name and optional version. Register tools, resources, prompts, middleware, authentication, or providers, then start the server with run(). The default transport is stdio; HTTP can be selected with a port for networked deployments.

Handlers can obtain an ambient context from the server. That context supports logging, progress reporting, LLM sampling, user elicitation, and session-specific state without passing these concerns through every function argument. Authentication can use a JWT verifier configured with a JWKS endpoint, issuer, and audience. Logging and rate-limiting middleware are available for request processing.

Servers can be composed by mounting child servers under a namespace. A remote HTTP server can be wrapped with createProxy and mounted alongside local servers, producing names such as weather_forecast or maps_<tool_name>.

The client API connects to a URL or a named collection of MCP servers. It can list tools, resources, and prompts; call tools; read resources; and retrieve prompts. Multi-server connections namespace capabilities by server name. Sampling adapters forward server sampling requests to Anthropic, OpenAI, or Google providers.

Setup and configuration

Install the package with:

Terminal
npm install @prefecthq/fastmcp-ts

The installation also provides the fastmcp command. It can run a TypeScript server, inspect local files or remote URLs, and call a tool without requiring a separate build step. Typical commands include fastmcp run server.ts, fastmcp inspect --file server.ts, and fastmcp call add --file server.ts a=1 b=2.

A client can connect with Client.connect('http://localhost:3000') or receive an mcpServers map for multiple connections. JavaScript resource management with await using can close a client automatically when its scope ends.

Tools and capabilities

  • Register typed tools, resources, and prompts.
  • Serve over stdio or HTTP.
  • Add logging, rate limiting, and JWT-based authentication.
  • Mount local or proxied servers with name-prefix namespacing.
  • Access progress, logging, sampling, elicitation, and session context from handlers.
  • Build MCP-hosted interfaces with reusable UI components and providers.
  • Use Anthropic, OpenAI, or Google sampling adapters on the client side.
  • Inspect servers and invoke tools through the bundled CLI.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Fastmcp Ts

fastmcp-ts is an MCP server framework for TypeScript that connects applications and AI hosts to custom tools, resources, and prompts. Its main APIs build servers with FastMCP, connect clients with Client, expose interactive UI apps with FastMCPApp, and support stdio or HTTP transports.

Install it with `npm install @prefecthq/fastmcp-ts`. The package also installs the `fastmcp` CLI, which can run and inspect TypeScript servers or call their tools without a separate build step.

Register the function with `server.tool()` and provide its name, description, input schema, and handler. Standard Schema-compatible libraries such as Zod, Valibot, and ArkType can supply the input definition.

Yes. Pass an `mcpServers` map to `Client.connect()` to connect to multiple servers at once. Their tools, resources, and prompts are automatically namespaced using each configured server name.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewFastmcp Ts AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/fastmcp-ts?style=directory)](https://allmcps.com/mcp/fastmcp-ts)
HTML Embed
<a href="https://allmcps.com/mcp/fastmcp-ts"><img src="https://allmcps.com/api/badge/fastmcp-ts?style=directory" alt="Fastmcp Ts on AllMCPs" /></a>