Awesome MCPTypeScript

punkpeye/fastmcp

⭐ 3265 TypeScript repository created 2024-12-27

FastMCP is a TypeScript framework designed to simplify the development of Model Context Protocol (MCP) servers. It provides a comprehensive and opinionated framework that handles many of the complexities involved in building MCP servers, such as client session management, multiple content types, real-time updates, and flexible tool definitions. FastMCP is built on top of the official MCP SDK but abstracts away much of the low-level implementation details, allowing developers to focus on the core functionality of their MCP servers. The framework supports a wide range of features including authentication, session handling, passing headers through context, and returning various content types like images and audio. It also supports embedded resources, logging, error handling, HTTP streaming with Server-Sent Events (SSE) compatibility, CORS enabled by default, progress notifications, streaming output, typed server events, prompt argument auto-completion, request sampling, configurable ping behavior, and a health-check endpoint. Additionally, FastMCP includes a command-line interface (CLI) for testing and debugging MCP servers. FastMCP uses the Standard Schema specification for defining tool parameters, which allows developers to use popular schema validation libraries such as Zod, ArkType, or Valibot. This flexibility makes it easy to define tools that can be invoked by clients or used by large language models (LLMs) to perform actions. The framework supports multiple transport options for remote communication, including HTTP streaming and SSE, enabling MCP servers to be accessed over the network efficiently. The project provides a quickstart example demonstrating how to create a simple MCP server with a tool that adds two numbers. It also offers real-world examples and a boilerplate repository to help developers get started quickly. FastMCP is ideal for developers who want to build MCP servers rapidly without dealing with the intricacies of the underlying protocol and server management, while still having the option to refer to the official SDK for more control if needed.

https://github.com/punkpeye/fastmcp

arktypeaudio-contentauthenticationcliclient-sessionscontent-typescorsembedded-resourceserror-handlingframeworkhealth-checkhttp-streamingimage-contentloggingmcpmcp-serversmodel-context-protocolofficial-sdkping-behaviorprogress-notificationsprompt-argument-auto-completionprompt-auto-completionpromptsreal-time-updatesremote-communicationrequest-samplingresourcessamplingschema-validationserverssession-managementsessionsssesse-clientsseclienttransportstandard-schemastidiostreaming-outputtool-definitionstoolstransporttransport-optionstyped-server-eventstypescripttypescript-frameworkvalibotzod

Also in TypeScript

modelcontextprotocol/typescript-sdk

Official TypeScript SDK for building and interacting with Model Context Protocol (MCP) servers and clients, enabling standardized context provision for large language models.

mnfst/manifest

Manifest is an open-source components library built on shadcn/ui for creating customizable and production-ready ChatGPT and MCP applications efficiently.

idosal/mcp-ui

mcp-ui is a TypeScript SDK that enhances the Model Context Protocol by enabling rich, interactive UI components through server-generated HtmlResourceBlocks and client-side React rendering, facilitating dynamic AI interactions.

modelcontextprotocol/use-mcp

use-mcp is a lightweight React hook that simplifies connecting to Model Context Protocol (MCP) servers by managing authentication, connection states, and tool invocation for AI applications.

QuantGeekDev/mcp-framework

MCP Framework is a TypeScript-based framework that simplifies building Model Context Protocol (MCP) servers with features like automatic discovery, multiple transport support, built-in authentication, and comprehensive validation tools.

jasonjmcghee/WebMCP

WebMCP is a protocol and toolkit enabling websites to act as MCP servers, sharing tools and resources securely with client-side large language models to enhance user interactions.

rekog-labs/MCP-Nest

A NestJS module that enables effortless creation of Model Context Protocol (MCP) servers to expose AI tools, resources, and prompts with support for multiple transport types and authentication.

vercel/mcp-adapter

A Vercel adapter that enables easy deployment of Model Context Protocol (MCP) servers on Next.js and other frameworks, facilitating real-time communication between applications and AI models.