原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Jsx Notation

作者:SebastianMaciel版本 0.1.6i★ 0i在你的电脑上运行
注册名称io.github.SebastianMaciel/jsx-notation

安装方法

概览

作者提供的说明(英文原文)

JSXN encoder/decoder — compact notation for React/Next.js files, optimized for LLMs

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公

安装

选择你使用的 AI 应用,然后复制设置。

通过 2/3 项检查 · 在你的电脑上运行

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude,但需要先准备

需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 打开电脑版 Claude 应用的设置文件

    SettingsDeveloperEdit Config

  3. 粘贴这些设置并保存文件

    {
      "mcpServers": {
        "jsx-notation": {
          "command": "npx",
          "args": [
            "-y",
            "jsx-notation"
          ]
        }
      }
    }
  4. 退出 Claude 再重新打开

  5. 试一试

    用 Jsx Notation 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Jsx Notation,或回答中出现 Jsx Notation 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Jsx Notation

Jsx Notation 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器

你可以改用这些方式

A · 使用能连接 Jsx Notation 的应用

  • 需要先在电脑上安装 Node.js(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
  • 需要先在电脑上安装 Node.js(只需一次)
  • 需要先在电脑上安装 Node.js(只需一次)
  • 需要先在电脑上安装 Node.js(只需一次)

B · 文档、表格与办公 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code,但需要先准备

需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  3. 粘贴这条命令并按 Enter

    claude mcp add jsx-notation -- npx -y jsx-notation
  4. 在 Claude Code 中输入 /mcp

    应能看到 Jsx Notation 在列表中并显示已连接

  5. 试一试

    用 Jsx Notation 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Jsx Notation,或回答中出现 Jsx Notation 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor,但需要先准备

需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  3. 在 Cursor 中以 Agent 模式打开 AI 聊天

  4. 试一试

    用 Jsx Notation 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Jsx Notation,或回答中出现 Jsx Notation 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code,但需要先准备

需要先在电脑上安装 Node.js(只需一次)

  1. 安装 Node.js

    只需一次,所有需要 Node.js 的服务器都能用

    打开 Node.js 下载页 ↗

  2. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  3. 在 VS Code 中以 Agent 模式打开 AI 聊天

  4. 试一试

    用 Jsx Notation 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Jsx Notation,或回答中出现 Jsx Notation 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Jsx Notation 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

安装在电脑上

Claude Code

claude mcp add jsx-notation -- npx -y jsx-notation

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "jsx-notation": {
      "command": "npx",
      "args": [
        "-y",
        "jsx-notation"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "jsx-notation": {
      "command": "npx",
      "args": [
        "-y",
        "jsx-notation"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "jsx-notation": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "jsx-notation"
      ]
    }
  }
}

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
61/周
连接方式
在你的电脑上运行
最新版本i
0.1.6
发布到注册中心i
2026年2月26日
代码最后更新i
2026年2月26日
作者
SebastianMaciel
软件包
npm: jsx-notation
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 SebastianMaciel 验证,该账户拥有此仓库

  • ! 注意

    仍在维护

    代码最后更新于9个月前,已超过 6 个月

  • ✓ 通过

    有许可证

    使用 MIT

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

使用 Google 登录后发帖

用户评价

还没有评价

用 Google 登录后写评价

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 3750 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 3750 个服务器的 3% 更新
  • 基础检查结果等于或优于此分类中其他 3750 个服务器的 45%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Jsx Notation 安全吗?

它在 3 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于9个月前,最新版本(0.1.6)于9个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Puter MCP, XcodeBuildMCP, XcodeBuildMCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Puter MCP

Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

作者:HeyPuter广泛使用★ 4.4万5个月前更新

在云端运行✓ puter.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

作者:getsentry广泛使用↓ 13万/周★ 65624个月前更新

在你的电脑上运行✓ xcodebuildmcp.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

作者:cameroncooke广泛使用↓ 13万/周★ 656214个月前更新

在你的电脑上运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

jsx-notation

Compress React/Next.js files, HTML, and SVG by ~40% for AI assistants. An MCP server and library that converts JSX/TSX, HTML, and SVG into JSXN — a compact notation optimized for LLM token consumption.

[Try the live demo →](https://sebastianmaciel.github.io/jsx-notation/)

Why

Every time an AI assistant reads your React components, HTML, or SVG files, it wastes tokens on closing tags, repeated className/class attributes, and verbose props. That's context window space that could be used for actual reasoning.

JSXN strips the redundancy while keeping the meaning:

// Before: 278 chars

{title} Submit

// After: 170 chars

@C Modal=M, Button=B @P onClick=k, disabled=x, isOpen=io, onClose=oc

M {io:showModal, oc:handleClose} .modal-body h2 (title) B {x:!selected, k:handleSubmit} "Submit"

Works for HTML too:

<!-- Before: 340 chars -->

Name Email Role

Alice alice@example.com Admin Bob bob@example.com User

// After: 188 chars

table.data-table thead tr th "Name" th "Email" th "Role" tbody tr td "Alice" td "alice@example.com" td "Admin" tr td "Bob" td "bob@example.com" td "User"

Works for SVG too:

<!-- Before: 306 chars -->
// After: 251 chars

svg {xmlns:http://www.w3.org/2000/svg, viewBox:0 0 24 24, fill:none, stroke:currentColor, stroke-width:2, stroke-linecap:round, stroke-linejoin:round} circle {cx:12, cy:12, r:10} line {x1:12, y1:8, x2:12, y2:12} line {x1:12, y1:16, x2:12.01, y2:16}

Indentation replaces closing tags. .class and #id work like CSS selectors. Frequent components, props, and CSS classes get short aliases. Values with commas are quoted to avoid delimiter confusion.

Quick start: MCP server

The main use case — let your AI assistant read JSX/HTML/SVG files in compressed form.

Claude Code:

claude mcp add jsx-notation -- npx jsx-notation

That's it. Restart Claude Code and the tools will be available. No npm install needed — npx downloads everything automatically.

VS Code (.vscode/mcp.json):

{

"servers": { "jsx-notation": { "command": "npx", "args": ["jsx-notation"] } } }

Add this file to your project and restart VS Code. It will detect the server on its own — no extra setup needed.

Cursor (~/.cursor/mcp.json or .cursor/mcp.json):

{

"mcpServers": { "jsx-notation": { "command": "npx", "args": ["jsx-notation"] } } }

Just add this to your config file and restart Cursor. It will pick up the server automatically — nothing else to install.

Troubleshooting: If the server shows "No tools or prompts" with a red dot, Cursor can't find npx in its PATH (common with nvm). Fix it by replacing "npx" with the full path — run which npx in your terminal and use that value (e.g. "/Users/you/.nvm/versions/node/v22.22.0/bin/npx").

Windsurf (~/.codeium/windsurf/mcp_config.json):

{

"mcpServers": { "jsx-notation": { "command": "npx", "args": ["jsx-notation"] } } }

Same format as Cursor. Add it, restart Windsurf, and it's ready.

Cline, Continue, Amazon Q, and JetBrains IDEs (IntelliJ, WebStorm, etc.) also use the same mcpServers format. Paste the JSON above into your MCP settings.

Zed (~/.config/zed/settings.json):

{

"context_servers": { "jsx-notation": { "command": "npx", "args": ["jsx-notation"] } } }

Add this inside your Zed settings file and restart. Zed uses context_servers instead of mcpServers.

The server exposes four tools:

ToolDescription
read_jsxnReads a .jsx/.tsx/.js/.ts/.html/.svg file and returns its JSXN encoding
encode_jsxnEncodes raw code as a string (file or snippet mode, jsx or html format)
decode_jsxnDecodes JSXN back to JSX/TSX or HTML (jsx or html format)
write_jsxnDecodes JSXN and writes the result to a file (auto-detects .html/.svg for HTML output)
Guiding the AI

Add this to your CLAUDE.md or .cursorrules so the assistant prefers JSXN:

When you need to read .jsx, .tsx, .js, .ts, .html, or .svg files for context,

use the read_jsxn tool from the jsx-notation MCP server. It returns JSXN compact notation (~40% fewer tokens) that you understand perfectly.

Library usage

For programmatic use: npm install jsx-notation — exports encode, encodeFile, encodeHTML, decode, decodeFile.

Notation reference

Elements and attributes
JSX/HTMLJSXN
/ .a.b (implicit div)
span#x
{title} h2 (title)
Hello span "Hello"
disabled (boolean prop){disabled}
{...props} (spread){...props}
Patterns (JSX only)
JSXJSXN
{cond && }?cond > X
{a ? : }`?a > A \B`
{items.map(i => )}*items > X
<>...</>_
File-level compression (encodeFile)
CodeJSXN
import { X } from 'mod'@I mod: X
import type { T } from 'mod'@T mod: T
const [x, setX] = useState(0)@state x = 0
const ref = useRef(null)@ref ref = null
const x = exprx = expr
JSX return boundary---
HTML/SVG-specific
HTML/SVGJSXN
<!DOCTYPE html>!DOCTYPE html

| / (void elements) | br / img {src:...} | | class="foo bar" | .foo.bar | | (SVG self-closing) | circle {cx:12} | | font-family="system-ui, sans-serif" | font-family:"system-ui, sans-serif" |

When decoding with { format: 'html' }:

  • class is used instead of className
  • All attribute values are strings (no {expression})
  • Void elements use `

(not `)

  • SVG elements without children use (XML self-closing)
  • Empty non-void elements use (not )
  • Values with commas are quoted in props: {key:"val, val2"}
Alias headers
HeaderPurposeExample
@CComponent aliases@C Button=B, Modal=M
@PProp aliases@P onClick=k, onChange=g
@SCSS class aliases (Tailwind)@S items-center=ic, font-medium=fm

Contributing

Found a bug or have an idea? Open an issue.

Disclaimer

This software is provided "as is", without warranty of any kind. See the MIT License for full terms.

JSXN is an experimental tool that compresses JSX/TSX, HTML, and SVG source code into a compact notation for use with AI/LLM systems. The encoded output is a lossy representation and may not preserve all semantic details of the original code. The author makes no guarantees about the accuracy of the encoding, the behavior of AI systems consuming JSXN output, or fitness for any particular use case.

The MCP server component reads files from your local file system. Only .jsx, .tsx, .js, .ts, .html, and .svg files are accepted, with a 10 MB size limit. You are responsible for ensuring it is configured appropriately for your environment. Use at your own risk.

License

MIT - Sebastián Maciel