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

brave-news-mcp

v1.0.2

Published

MCP server for Brave News search and summarization (stdio)

Readme

Brave News MCP

基于 Brave News API 的 MCP 服务器,支持 HTTP(Streamable HTTP)与 stdio 传输,提供工具 brave_news_search 用于按查询参数拉取并汇总新闻。

ModelScope MCP 配置(自动解析)

{
  "mcpServers": {
    "brave-news-mcp": {
      "command": "npx",
      "args": ["brave-news-mcp@latest"],
      "env": {
        "BRAVE_NEWS_TOKEN": "your_token_here"
      }
    }
  }
}
mcpServers:
  brave-news-mcp:
    command: npx
    args:
      - brave-news-mcp@latest
    env:
      BRAVE_NEWS_TOKEN: your_token_here

MCP 服务命令配置(用于平台自动解析)

  • 顶层字段:mcpServers(对象)
  • 服务键:brave-news-mcp
  • 命令:node
  • 参数:["src/mcp.js"]
  • 环境变量:BRAVE_NEWS_TOKEN
  • 工具列表:["brave_news_search"]

JSON:

{
  "mcp": {
    "name": "brave-news-mcp",
    "transport": "http",
    "endpoint": "/mcp",
    "health": "/health",
    "port": 8000,
    "start": "node src/http-mcp.js",
    "env": ["BRAVE_NEWS_TOKEN"],
    "tools": ["brave_news_search"]
  }
}

YAML:

mcp:
  name: brave-news-mcp
  transport: http
  endpoint: /mcp
  health: /health
  port: 8000
  start: node src/http-mcp.js
  env:
    - BRAVE_NEWS_TOKEN
  tools:
    - brave_news_search

运行与验证

  • 本地运行 MCP(stdio):BRAVE_NEWS_TOKEN=... npm run start:mcp
  • 测试:BRAVE_NEWS_TOKEN=... npm test

发布到 npm(自动化)

  • 在 GitHub 仓库中添加仓库密钥 NPM_TOKEN(npm 网站生成的发布令牌)
  • 推送标签触发发布:
    • npm version patchnpm version minor
    • git push --tags
  • 或手动触发工作流(Actions → Publish to npm → Run workflow)
  • 发布后可通过 ModelScope 的托管检测:
    • command: npx, args: ["brave-news-mcp@latest"]

部署到 ModelScope

  • 容器镜像(可选):使用项目根目录 Dockerfile,入口 node src/http-mcp.js,端口 8000
  • 详细部署指引:见 README-ModelScope.md