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

ai-display

v0.2.2

Published

MCP server for AI Display - AI can output any content to screen, get and update markdown documents in real-time

Readme

AI Display MCP Server

让 AI 可以将任何内容输出到屏幕的 MCP (Model Context Protocol) 服务器。提供实时获取和更新 Markdown 文档的功能,让 AI 能够直接在浏览器中展示内容。

功能

工具

  1. get_content - 获取 Markdown 文档内容

    • 环境变量:
      • DOC_ID (必需): 文档ID,在 MCP 配置中设置
    • 参数:
      • baseUrl (可选): API 基础URL,默认为 https://markdown-live-for-ai.vercel.app
  2. update_content - 更新 Markdown 文档内容

    • 环境变量:
      • DOC_ID (必需): 文档ID,在 MCP 配置中设置
    • 参数:
      • content (必需): 新的文档内容
      • baseUrl (可选): API 基础URL,默认为 https://markdown-live-for-ai.vercel.app

安装

使用 npx(推荐)

npx ai-display

全局安装

npm install -g ai-display

使用

在 Claude Desktop 中配置

在 Claude Desktop 的配置文件中添加:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "ai-display": {
      "command": "npx",
      "args": ["-y", "ai-display"],
      "env": {
        "DOC_ID": "your-document-id-here"
      }
    }
  }
}

重要:将 your-document-id-here 替换为你的实际文档ID。配置后重启 Claude Desktop。

示例

配置完成后,documentId 会自动从环境变量 DOC_ID 读取。

获取文档内容

# 使用 MCP 工具(documentId 从环境变量自动读取)
get_content()

更新文档内容

# 使用 MCP 工具(documentId 从环境变量自动读取)
update_content({
  "content": "# 更新的标题\n\n更新的内容..."
})

连接到本地开发服务器

{
  "mcpServers": {
    "ai-display": {
      "command": "npx",
      "args": ["-y", "ai-display"],
      "env": {
        "DOC_ID": "your-document-id"
      }
    }
  }
}

然后在工具调用时指定 baseUrl

get_content({
  "baseUrl": "http://localhost:3000"
})

开发

构建

pnpm build

发布

npm publish

许可证

MIT