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 🙏

© 2026 – Pkg Stats / Ryan Hefner

coupon-mcp-server

v0.1.3

Published

Minimal MCP server that proxies coupon APIs (no DB, no auth)

Readme

coupon-mcp-server

Minimal MCP (Model Context Protocol) server that proxies HTTP GET requests to a built‑in data source.

No database. No authentication. Zero configuration for end users. Published on npm as coupon-mcp-server.

最小化的 MCP(Model Context Protocol)服务端,仅将 HTTP GET 请求转发到内置数据源。

无需数据库、无需鉴权、开箱即用。已发布到 npm:coupon-mcp-server

1) Features 功能特性

  • Zero‑config:内置数据源,无需环境变量
  • MCP stdio:兼容 MCP 客户端
  • Single tool:仅暴露一个清晰的工具,避免歧义
  • 轻量:聚焦 JSON 优先返回

2) Requirements 环境要求

  • Node.js >= 18.17

3) Install & Run (npx) 安装与启动

Run directly without local install 直接运行(无需本地安装):

npx -y coupon-mcp-server

The server runs over stdio and awaits MCP client connections. 服务端通过 stdio 工作,等待 MCP 客户端连接。

4) MCP Client Integration 客户端集成

Add this to your MCP client configuration (stdio). 将以下片段加入你的 MCP 客户端配置。

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

No environment variables are required; BASE_URL is ignored. 无需配置环境变量;BASE_URL 会被忽略。

5) Tools 工具

  • jutuike.public_promo_list
    • Input 输入:{ query? }
    • Description 说明:固定路径 GET /api/mcp/jutuike/public_promo_list,可携带查询参数

6) Usage 示例

Minimal call 最小调用:

{
  "query": { "page": 1, "size": 20 }
}

7) Behavior 行为

  • If upstream returns JSON (content-type: application/json), the tool returns { type: "json", json: ... }.
  • Otherwise returns { type: "text", text: "Status <code>: <body>" }.

若上游返回 JSON(content-type: application/json),工具返回 { type: "json", json: ... }; 否则返回 { type: "text", text: "Status <code>: <body>" }

8) Local Development 本地开发

npm install
node server.js

9) Versioning 版本

  • Semantic versioning 语义化版本。npx 将获取最新版本,或使用 npm update coupon-mcp-server

10) License 许可

MIT(见 LICENSE)。

11) Security 安全

This server is intentionally open (no auth). Do not proxy sensitive/internal data. 本服务端有意保持开放(无鉴权)。请勿用于敏感或内部数据的代理。