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

@duckfly/mcp

v1.0.7

Published

Duckfly MCP provides a ready-to-run MCP (Model Context Protocol) server generated from Duckfly API specifications, acting as a bridge that forwards MCP calls to your backend. It supports JSON-RPC, SSE, and streamable HTTP.

Readme

Overview

Duckfly MCP is a local MCP (Model Context Protocol) server that uses the spec produced by Duckfly Core for your documented API. It exposes tools, prompts, and resources to AI clients and forwards tool calls to your backend.

Use the same Duckfly token as the proxy plugin. The spec is fetched once at startup from Duckfly Core.

Why use Duckfly MCP

  • Expose your API as MCP tools so AI assistants can call your endpoints
  • No manual MCP spec: tools and schemas come from your Duckfly documentation
  • Optional auth: None, Basic, Bearer, or OAuth (JWT via JWKS)
  • JSON-RPC over HTTP with optional SSE (single global stream or streamable per-request responses)

Quick Start

Global install

npm install -g @duckfly/mcp

Or run with npx

npx @duckfly/mcp

The CLI will ask for:

| Prompt | Description | Default | |---|---|---| | Token | Your Duckfly application token (same as proxy) | — | | MCP Port | Port where the MCP server listens | 9090 | | Target URL | Base URL of your API (tool calls are sent here) | http://localhost:3000 | | Auth mode | None / Basic / Bearer / OAuth | none |

Configuration is saved in .duckfly-mcp.json.

How it works

┌─────────────┐           Duckfly Spec         ┌──────────────┐
│ Duckfly MCP │ <───────────────────────────── │ Duckfly Core │
│ (local)     │                                │ (your spec)  │
└──────┬──────┘                                └──────────────┘
       │
       │ Tool calls (e.g. POST /api/sample/123)
       ▼
┌──────────────┐
│ Your API     │  (Target URL)
└──────────────┘
  1. At startup, the plugin fetches the MCP spec from Duckfly Core (tools, prompts, resources).
  2. AI clients connect to your local MCP server and see those tools.
  3. When a client invokes a tool, the server calls Target URL + path (e.g. http://localhost:3001 + /api/sample/123).
  4. The response is returned to the client; the body includes a requested field (method + URL) for debugging.

If you get 404 on a tool call: the target server does not have that route. Ensure the service at Target URL is the same API documented in Duckfly, and if your API uses a prefix (e.g. /v1), set Target URL to http://localhost:3001/v1.

Endpoints

| Method | Path | Description | |--------|------|-------------| | GET | /mcp | Open the global SSE channel (one at a time). | | POST | /mcp | JSON-RPC. With Accept: text/event-stream you get a streamed response; otherwise, if the global SSE is open, the response is sent there and the POST gets 202; else you get application/json. | | DELETE | /mcp | End the session (requires Mcp-Session-Id). | | GET | /.well-known/oauth-protected-resource/mcp | OAuth protected-resource metadata (only when OAuth is enabled). | | GET | /health | Health check ({ "ok": true }). |

License

MIT License

This license applies only to the Duckfly MCP package. The Duckfly platform and services are governed by separate terms.