MCP Framework logo

MCP Framework

by QuantGeekDev

MCP-Framework is a TypeScript framework for building Model Context Protocol (MCP) servers. It provides architecture out of the box with automatic directory-based discovery for tools, resources, and prompts.

View on GitHub

Last updated: N/A

What is MCP Framework?

MCP-Framework is a framework for building Model Context Protocol (MCP) servers elegantly in TypeScript. It provides a structured approach to developing MCP servers with features like automatic discovery of tools, resources, and prompts.

How to use MCP Framework?

Use the CLI to create a new MCP server project, add tools, prompts, and resources. Then, build the project and configure your MCP client (e.g., Claude Desktop) to connect to the server. The framework supports stdio, SSE, and HTTP Stream transports, each with its own configuration options.

Key features of MCP Framework

  • Automatic discovery and loading of tools, resources, and prompts

  • Multiple transport support (stdio, SSE, HTTP Stream)

  • TypeScript-first development with full type safety

  • Built on the official MCP SDK

  • Easy-to-use base classes for tools, prompts, and resources

  • Out of the box authentication for SSE endpoints

Use cases of MCP Framework

  • Building custom tools for AI models

  • Creating resources to provide context to AI models

  • Developing prompts to guide AI model behavior

  • Integrating with MCP-compatible clients like Claude Desktop

FAQ from MCP Framework

How do I create a new MCP server project?

Use the CLI command mcp create <your project name here>.

How do I add a tool to my project?

Use the CLI command mcp add tool <tool name>.

How do I add a prompt to my project?

Use the CLI command mcp add prompt <prompt name>.

How do I add a resource to my project?

Use the CLI command mcp add resource <resource name>.

How do I configure the server transport?

Specify the transport type and options in the MCPServer constructor. Available transports are stdio, SSE, and HTTP Stream.