npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

easy-mcp-server

v1.1.50

Published

AI-era Express replacement with zero-config MCP integration - Build AI-ready APIs in 30 seconds

Readme

npm version License: MIT AI-Ready MCP Compatible

Write a handler once, get

  • MCP tools
  • REST endpoints
  • n8n nodes
  • Swagger/OpenAPI automatically.

1. What Is It?

easy-mcp-server watches the api/ folder and turns every file into:

| You provide | You get automatically | |-------------|-----------------------| | api/foo/get.ts style handlers | MCP tools (api__foo__get) || REST routes GET /foo | | Request/Response classes | MCP tools and OpenAPI schema + Swagger UI | | npm run n8n:generate | n8n nodes that mirror your APIs |

Everything hot-reloads and ships with zero config.


2. Quick Start

npx easy-mcp-server init my-project
cd my-project
./start.sh

| Service | URL | |---------|-----| | MCP Server | http://localhost:8888 | | REST API | http://localhost:8887 | | Swagger UI | http://localhost:8887/docs | | OpenAPI Spec | http://localhost:8887/openapi.json |

Stop the stack with ./stop.sh.


3. Define an Endpoint

File Name = Route (Examples)

| File | Method | Route | |------|--------|-------| | api/users/get.ts | GET | /users | | api/users/post.ts | POST | /users | | api/users/[id]/get.ts | GET | /users/:id |

Minimal Handler Template

Request block

// @description('Incoming payload')
class Request {
  // @description('User name')
  name: string;
  // @description('User email')
  email: string;
}

Response block

// @description('Response payload')
class Response {
  success: boolean;
  data: { id: string; name: string; email: string };
}

Handler block

// @summary('Create a user')
// @tags('users')
function handler(req: any, res: any) {
  const { name, email } = req.body;
  if (!name || !email) {
    res.status(400).json({ success: false, error: 'Name and email required' });
    return;
  }

  res.status(201).json({
    success: true,
    data: { id: '123', name, email }
  });
}

Export block

module.exports = handler;
export {};

Annotations (@description, @summary, @tags) feed OpenAPI docs and MCP tool metadata automatically.


4. System Architecture

See System Architecture documentation for detailed diagrams and flow explanations.


5. MCP Bridge (Optional)

Combine Other MCP Servers via mcp-bridge.json

{
  "mcpServers": {
    "chrome": {
      "command": "npx",
      "args": ["-y", "chrome-mcp-server"]
    }
  }
}

Hot reload keeps bridge tools and your API tools available on port 8888. Disable any bridge by adding "disabled": true.


6. Operations

| Command | Purpose | |---------|---------| | ./start.sh | Launch REST + MCP servers | | ./stop.sh | Stop them | | npm run n8n:generate | Refresh n8n nodes | | npm test | Run tests (where configured) |

| Env var | Default | Notes | |---------|---------|-------| | EASY_MCP_SERVER_PORT | 8887 | REST port | | EASY_MCP_SERVER_MCP_PORT | 8888 | MCP port | | EASY_MCP_SERVER_LOG_LEVEL | info | debug, info, warn, error | | EASY_MCP_SERVER_API_PATH | ./api | Folder to watch | | EASY_MCP_SERVER_HOST | 0.0.0.0 | Host binding |


7. Resources

  • Architecture: docs/ARCHITECTURE.md
  • Guide: docs/DEVELOPMENT.md
  • Example project: example-project/
  • Swagger: http://localhost:8887/docs
  • OpenAPI: http://localhost:8887/openapi.json
  • MCP endpoint: http://localhost:8888

8. Support & Contributions

| Topic | Details | |-------|---------| | Questions / Enterprise Support | [email protected] | | Licensed | MIT | | Maintainer | Boqiang Liang ([email protected]) |