LogoAISecKit
icon of mcp-framework

mcp-framework

A framework for writing MCP (Model Context Protocol) servers in Typescript.

Introduction

MCP Framework

MCP-Framework is a framework for building Model Context Protocol (MCP) servers elegantly in TypeScript.

Key Features:
  • Automatic Discovery: Automatically discovers and loads tools, resources, and prompts.
  • Multiple Transport Support: Offers stdio, SSE, and HTTP Stream transport options.
  • Type Safety: TypeScript-first development ensuring full type safety.
  • Easy-to-use Base Classes: Provides base classes for tools, prompts, and resources, simplifying development.
  • Authentication: Built-in authentication options for SSE endpoints, including JWT and API Key support.
Benefits:
  • Efficient Project Setup: Use the CLI to create and manage MCP server projects effortlessly.
  • Session Management: Automatic tracking and management of sessions.
  • Stream and Batch Response Modes: Configurable response modes cater to different use cases, enhancing flexibility.
Highlights:
  • Built on the official MCP SDK.
  • Comprehensive error handling and logging features included.
Getting Started:
  1. Install the framework globally with:
    npm install -g mcp-framework
  2. Create a new MCP server project:
    mcp create my-mcp-server
    cd my-mcp-server
  3. Build your project with:
    npm run build
  4. Start developing your tools and resources easily!

Information

  • Publisher
    AISecKit
  • Websitegithub.com
  • Published date2025/04/28

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates