MCPSERV.CLUB
zcaceres

EasyMCP

MCP Server

Simplify MCP server creation with TypeScript and Express-like API

Stale(65)
187stars
2views
Updated 19 days ago

About

EasyMCP is a lightweight, type-safe framework for building Model Context Protocol servers in TypeScript. It offers an intuitive Express‑style API, experimental decorators for auto‑typing, and streamlined resource, tool, and prompt definitions.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

easyMCP logo

Overview

EasyMCP is a lightweight, TypeScript‑centric implementation of the Model Context Protocol (MCP) that removes most of the boilerplate traditionally required to expose AI‑ready services. By presenting an Express‑like declarative API, it lets developers define Tools, Prompts, Resources, and Resource Templates with a few concise lines of code, while automatically handling the underlying JSON schema generation and request routing. This streamlined approach enables rapid prototyping of AI assistants that can call external services, fetch data, or generate responses without the overhead of manual schema construction.

The server solves a common pain point for AI‑centric developers: wiring together the MCP contract with real functionality. Instead of manually writing schema files and endpoint handlers, EasyMCP generates the necessary MCP metadata from TypeScript method signatures. The experimental decorators API goes even further by inferring argument types and optional parameters, so developers can focus on business logic rather than protocol details. The context object exposed to tools provides built‑in logging and progress reporting, giving assistants a way to surface status updates back to the client.

Key capabilities include:

  • Express‑style routing for MCP endpoints, making it familiar to Node.js developers.
  • Automatic schema inference and optional parameter handling via decorators, eliminating the need for explicit JSON schema definitions.
  • Type safety throughout the API, reducing runtime errors and improving developer experience.
  • Contextual logging that integrates with MCP’s progress reporting, enabling richer user feedback.

Real‑world use cases are abundant: a content creation assistant that calls a photo repository API, an inventory system where tools fetch and update product data, or a data‑analysis chatbot that retrieves structured datasets from a database. In each scenario, EasyMCP allows the assistant to expose domain‑specific functions as first‑class MCP tools with minimal setup, while still adhering to the protocol’s expectations for tool invocation and response formatting.

Because EasyMCP is built in TypeScript, it naturally fits into modern JavaScript/Node ecosystems and can be composed with other libraries (e.g., database ORMs, authentication middleware). Its experimental decorators API also positions it as a forward‑looking solution that can evolve with future MCP extensions, such as sampling or server‑side events. For developers looking to add AI capabilities quickly and reliably, EasyMCP offers a clear path from code to fully‑functional MCP server.