easy-mcp

zcaceres
143
Absurdly easy Model Context Protocol Servers in Typescript
#ai #bun #claude #claude-ai #framework #mcp #mcp-server #mcp-servers #model-context-protocol #node #nodejs #open-source #typescript

Overview

What is easy-mcp

EasyMCP is a framework for creating Model Context Protocol (MCP) servers using TypeScript. It simplifies the process by abstracting boilerplate code and allowing developers to focus on defining the essential components of their servers.

How to Use

To use EasyMCP, install it in your project directory using 'bun install'. You can then create a class that extends EasyMCP and define resources, tools, and prompts using decorators. The framework provides a simple API similar to ExpressJS for defining endpoints.

Key Features

Key features include a simple Express-like API, an experimental decorators API for automatic type inference, a context object for accessing MCP capabilities, and great type safety to reduce runtime errors.

Use Cases

EasyMCP is suitable for developers looking to quickly build MCP servers with minimal configuration. It can be used in applications requiring context-aware tools, dynamic resource management, and user prompts.

Content