Submit

eMCP

@joeymeere

A framework for building simple MCP servers with custom middleware
Overview

What is eMCP?

eMCP is a framework designed for building simple Model Context Protocol (MCP) servers with custom middleware and built-in authentication handling. It serves as a fork of the LiteMCP TypeScript library, offering extended features while maintaining compatibility with existing LiteMCP tools.

How to use eMCP?

To use eMCP, install it via Bun or NPM with the command npm i emcp or bun add emcp. You can then create a server instance and define your authentication logic and middleware as needed.

Key features of eMCP?

  • Near drop-in replacement for LiteMCP with all its features.
  • Built-in authentication handler for secure requests.
  • Support for custom layered middleware to enhance request processing.

Use cases of eMCP?

  1. Building secure MCP servers with custom authentication.
  2. Implementing middleware for logging, error handling, or request modification.
  3. Creating advanced server functionalities with layered processing.

FAQ from eMCP?

  • Is eMCP compatible with LiteMCP?

Yes! eMCP is designed to be a drop-in replacement for LiteMCP, with additional features.

  • How do I implement custom middleware?

You can implement custom middleware by using the server.use() method to define your middleware logic.

  • What programming language is eMCP written in?

eMCP is written in TypeScript.

© 2025 MCP.so. All rights reserved.

Build with ShipAny.