
Open Mcp Apps
io.github.2nd1st由 GitHub 帳號 2nd1st 發布v0.5.9更新於 Oct 24, 2026
Persistent, interactive MCP Apps — the AI builds an app once, you both reuse it
概覽
本機 MCP 伺服器,讓助理撰寫單一檔案 HTML 小應用並儲存,之後在對話中重新開啟,資料持久保存在 SQLite 中。
- 可以做什麼
- 建立與管理應用:列出既有應用、讀取撰寫指南、儲存 AI 撰寫的單一檔案 HTML 應用、編輯或刪除,並依名稱開啟任一應用。
- 儲存與編輯資料:應用綁定到帶版本的集合,底層為 SQLite 並附追加式變更帳本,助理與使用者編輯同一份記錄。
- 操作已開啟的應用:像使用者一樣讀取畫面並執行操作。
- 瀏覽並安裝內建應用商店中的現成應用,另有設定與儀表板等系統應用。
- 在引擎端執行應用函式,並可在對話之外的本地瀏覽器檢視器中查看應用。
- 適用情境
- 適合希望助理一次做出小型專用工具、並在不同對話與宿主中連同資料持續重複使用的場景。較適合看板、習慣追蹤、分帳等單一用途的小工具,而不是一個龐大的複合應用。
- 執行需求
- 本機 stdio 伺服器,透過 npx 執行具作用域的 npm 套件,需要 Node 22 或更新版本;安裝腳本方式還需要 git。需要能渲染 ui:// 元件的宿主,才能在對話中顯示。選用環境變數:OMA_DB 指定 SQLite 儲存路徑,OMA_VIEWER 與 PORT 控制本地瀏覽器檢視器,OMA_APP_STORE_DIRS 新增應用來源,OMA_FUNCTIONS 關閉應用函式。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Open Mcp Apps,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
open-mcp-apps
[CI] [npm] [license] [node] [MCP Registry]
English | 简体中文
Give your AI a persistent, reusable UI. It builds the app once — you keep it forever.
open-mcp-apps is an open engine built on MCP Apps
(ui://, io.modelcontextprotocol/ui) — an extension to the core Model Context Protocol
specification, and the first official one,
live since 26 January 2026. It gives any MCP-Apps-capable host (Claude Desktop, claude.ai, Codex,
ChatGPT, …) three things the extension itself doesn't provide:
- An app registry the AI can write to. Ask for a UI that doesn't exist — the AI reads
the authoring guide, writes a single-file HTML app against a tiny
window.omaAPI, and saves it. From that moment you can open it by name, in this chat and every future one. - Persistent, versioned data — separate from the UI. Apps bind to generic
collections of items backed by SQLite plus an append-only
change_eventledger. Every mutation is an idempotent domain command (command_id) with optimistic concurrency (expected_version). The AI and the human edit the same store — the widget is just a view. - A shell runtime so AI-written apps actually work. Serving
ui://, the engine wraps the app with the official MCP App bridge, host theming (Claude's design tokens, light/dark), and thewindow.omadata API. What you write is a view; the protocol, persistence, idempotency and theming are the engine's problem.
Which of those hosts this engine reaches. It runs on your machine and binds 127.0.0.1, so it
serves the hosts on that same machine: Claude Desktop, Claude Code, Codex, plus its own browser
viewer. A browser host cannot reach a loopback server on your laptop, so claude.ai and ChatGPT web
need a remote deployment — today that means the hosted openmcp.app, which
runs this same engine for you. Running that remote shape yourself is on the roadmap and not done.
Install
open-mcp-apps runs as a local MCP server. First get it connected to your host (below); then onboarding happens inside the host, separately — that's where the AI builds your first app.
From npm — nothing to clone
If you are comfortable editing your host's config file, point it at the published package and
let npx fetch the engine. This path needs only Node 22 — no git, and no checkout for you to
keep updated. Paste this into your host's MCP server config:
The one thing the installer below adds is registering the server into every host it finds. Either
way the server seeds the system apps (settings, dashboard, App Store) when it starts, and your data
lives in the same fixed per-user store, so you can move between an npx server and a cloned one
without migrating anything.
A note on npm: this project publishes under the scoped name
@2nd1st/open-mcp-apps. The unscopedopen-mcp-appson the registry is not this project — that name is held by an unrelated package. Check for the@2nd1st/prefix; the scope is the only thing telling the two apart.
With the installer — one command
Installing needs a shell, so the chat apps (Claude Desktop, Codex) can't install themselves — use one of these instead:
It opens a short picker to choose which hosts to register into — Claude Desktop, Claude Code,
Codex — plus your permission preference. Skip it with -s -- --yes, or target one host with
-s -- --host codex.
Where it puts the clone, before you pipe anything into a shell: ~/open-mcp-apps. Set OMA_DIR
to put it somewhere else — curl -fsSL <url> | OMA_DIR=~/src/oma sh. Re-running the one-liner
updates that same clone in place instead of making a second one. Your apps and data are not in it
(they live in the per-user store under Configuration), so the folder is safe to
move or delete — and node uninstall.mjs does not delete it for you.
With a coding agent (Claude Code, Codex CLI — they have a shell), paste:
Read https://raw.githubusercontent.com/2nd1st/open-mcp-apps/main/install.md and follow it.
Either way, install.mjs registers the server into each host you pick, idempotently — it never
clobbers your other servers, pins a stable node launcher (native SQLite ABI), reports what
changed, and cleans up a pre-rename entry if one lingers. Your data lives in a fixed per-user
store (not inside the clone), so every host shares the same apps and data.
From a clone — for development
To wire a clone into a host by hand instead, point it at the checkout — this is the shape
install.mjs writes:
Hosted
openmcp.app runs the engine for you. The engine in this repository binds
127.0.0.1 by design, so a self-hosted remote deployment is not a supported shape yet — see
Status and roadmap.
Uninstall
node uninstall.mjs unregisters the server from every host it finds — but keeps your data:
the shared store stays put, so re-installing later restores every app and all data. It also leaves
the installer's clone (~/open-mcp-apps, or wherever OMA_DIR pointed) on disk — nothing here ever
deletes that folder, so remove it yourself when you want the checkout gone.
Requirements
- Node 22 or newer, on macOS, Windows or Linux.
git— only on the installer path. Thenpxpath above needs neithergitnor a checkout. The installer checks for both and stops with a message rather than half-installing if either is missing.- A host that renders
ui://if you want widgets in the conversation. Terminal hosts (Claude Code in a terminal, codex CLI) drive the same data by design and put the UI on a browser screen beside the terminal instead — one that can follow along, showing whatever the AI just opened. The per-host detail is in Host support. - After installing or updating, fully quit and reopen the host (Cmd-Q, not just closing the window) — it keeps its old server process on the old data until fully quit.
Configuration
Every setting is an environment variable, set in the env block of your host's MCP server entry:
An app's own tool. Every app opens through open_app. To give one app its own open_<name>
tool as well, pin it: Settings → Installed → the app → Own tool. The tool list changes only
when you pin, unpin or delete a pinned app, and Claude.ai and ChatGPT show the new tool after you
refresh the connector's tool list.
Where your data lives. The whole store is one SQLite file, open-mcp-apps.db, in
~/Library/Application Support/open-mcp-apps/ (macOS), %APPDATA%\open-mcp-apps\ (Windows), or
$XDG_DATA_HOME else ~/.local/share/open-mcp-apps/ (Linux). It is outside any clone, which is
why every host shares the same apps and data.
First-run permissions. The first few tool calls each show an approval dialog — pick
"Always allow". The tool set is small and stable on purpose: read-only tools generally
skip approval, and the single open_app tool covers opening every app (including ones the AI
creates later) behind that one grant, so nothing new asks again. An OMA_DYNAMIC_TOOLS=1 left in
an older entry does nothing; node install.mjs --check reports it as stale, and re-running the
installer removes that one key.
You can also batch approvals in Settings → Connectors → open-mcp-apps → Tool permissions.
Usage
Start in your host. Restart it after installing. New here? The engine ships one MCP prompt,
get_started. A host that surfaces prompts lists it as Get started with open-mcp-apps; hosts
that render prompts as slash commands spell it /mcp__open-mcp-apps__get_started. Picking it hands
the AI the whole opening move. Not every host surfaces prompts — where yours doesn't, nothing is
lost, because the prompt is just a sentence you can say yourself: "I just installed open-mcp-apps
— show me how to use it with a couple of examples, and suggest a few apps that fit how I work."
Either way it looks at what you already have and what the App Store already offers, asks you a
couple of questions, and sets up a first app tailored to you. This step is separate from install and lives in the host. Or just ask directly:
- "make me a board for what I'm juggling right now" → the AI writes it, seeds it, and opens it (persistent)
- "make me a habit tracker" → watch it read the guide, write the app, save it, open it
- close the app, reopen, ask again → everything is still there
The loop
Apps accumulate. Each one is single-purpose and independent — a board, a tracker, a splitter — minted for the task in front of you and kept for the next time you need it.
What it looks like
Apps render inline, in the chat you were already having. Ask for one and the AI writes it:
Come back in another chat — or another host — and it's still there, with your data in it:
[Claude — a new chat opens the same reading list, now eight books long]
The App Store ships ready-made apps, with working previews and one-click install. They live in
their own package, @openmcp-app/oma-store, which the
engine installs as a dependency — new store apps are contributed there:
[The App Store — live previews of ready-made apps]
Every app above is a single HTML file bound to plain data collections — written with the same
window.oma API and authoring guide your AI will use for the apps it builds you.
Multiple widgets in one conversation work fine (habit-streaks + meal-planner side by side).
The browser viewer, and the port it binds
Every install runs a small local web server on http://127.0.0.1:8787. It is how you see your apps outside a chat window — one page per app, the same data your AI is reading — and in a terminal host it is the only way to see them at all, so the AI hands you the link when it builds or opens something.
It starts on its own; OMA_VIEWER and PORT above change that. If the port is already taken by
another open-mcp-apps process, that one is already serving the same data and this one just shares
its address; if it is taken by something else, you get no viewer and no links rather than a link
into a stranger's server.
There is no password on it, and that is deliberate. The listener is hard-wired to 127.0.0.1,
so there is no setting that makes it answer from another machine. Any program on your computer that
could reach the port can already open the SQLite file directly — a password would be a lock beside
an open wall. The one way this reaches the internet is a tunnel you start yourself, which is its own
deliberate decision; while a tunnel is up, treat its URL as a secret, because it is currently the
only thing standing between the internet and your data.
Host support
Live-tested 2026-07-22 (ChatGPT web 2026-07-28), except cells that carry their own date. A date says when a cell was true, not that it was checked again since.
Everything rides the MCP Apps bridge, so host fixes upstream (e.g. #28912) benefit this project with zero changes.
On Claude Code specifically: it is one product with two surfaces, and only one of them can
draw — which is why it takes two rows. In a terminal there is no inline widget surface at all: that
is architecture rather than a gap, and it is exactly what a screen beside the
terminal is for. The Code surface inside the Claude app has a UI and
renders inline; the 2026-08-16 reading there came through the universal open_app.
On Codex specifically: plugins are registered on the web side, so a locally-installed engine is reached as an MCP server, not as a plugin — which is the right path for a self-hosted install anyway. Widget rendering in the ChatGPT desktop app also appears to depend on how you are signed in (we have seen it work under an account sign-in; not yet established under an API key).
A screen beside the terminal
Those two — cells say the chat shows text. They do not say there is no UI. The
engine remembers which app was opened last and pushes that pointer to the viewer on the /events
frame, and an app can place a region — oma.embed("@live", {into}) — that mounts whatever the AI
opened last and swaps itself when the AI opens another. The App Store ships one: install live,
open http://127.0.0.1:8787/view/live in a window you then leave alone, and the terminal keeps the
conversation while that screen shows the app. The AI opens or writes from the CLI, the screen
follows, and you can click, edit and type into it there. Headless CLI use is what it was built for.
The cheapest form of "that screen" is a browser pane in the same tiled workspace — one column over from the agent, in the window you are already working in. Same machine, no tunnel, no second device; most modern terminal setups can put a browser next to a shell, and that is all this needs. A second monitor is the same idea with more desk, and a screen on another device is the same idea again with the caveat below.
The costs are real and worth stating plainly. There is still no widget in the transcript.
sendMessage degrades to a notice on a standalone page, exactly as in the Browser viewer row —
clicks change data, they do not talk back to the chat. The viewer has to be running (OMA_VIEWER,
on by default) with a browser pointed at it; this is not zero-config. And the listener is bound to
127.0.0.1, so "a spare tablet on the wall" means this machine's screen unless you put up the
tunnel described above and accept what that section says about it. Inside a chat host the same
region deliberately draws a placeholder instead of following anything.
Described from the code as built, not measured on a host — the live-test dates above cover the table, not this section.
Writing an app yourself
The AI is the usual author, but it isn't the only one — its context window shouldn't be the ceiling on what an app can be. Build one in your own editor, with your own bundler, and install it:
Two shapes are accepted. One self-contained HTML document — no size cap (keep it lean: data
lives in the collection, source is read in windows) — the engine injects a minimal base style, the
host's design tokens and window.oma. Or a template plus a bundle: the HTML is a readable mount
point that references its own build output (<script type="module" src="oma-asset:app.js">,
<link rel="stylesheet" href="oma-asset:app.css">), --asset pushes those files into the app's
file plane, and the engine inlines them the moment the document leaves the store — a host iframe
cannot reach this machine.
The trade: the AI can no longer iterate on it — your files are the source of truth, you rebuild
and re-install. It can still read a single-document app's source; for a template + bundle app it
reads the template and the bundle stays yours (edit_app and the AI's save_app refuse with
built_outside; re-running the command above is the edit). Either way the app shares your data
like any other. Provenance is not overwritable in either direction, so an app installed
--sandboxed stays sandboxed until you delete it. What a widget may connect to is the app's own
declaration (manifest.csp, relayed to the host per the MCP Apps spec — nothing by default), and
an app's functions run engine-side and may fetch — see RUNTIME.md §5.1 and §6.1, and
the two type files for what an app sees — @2nd1st/open-mcp-apps/types/window-oma (the
window.oma API) and @2nd1st/open-mcp-apps/types/oma-function (the args/api a function body
gets) — both resolve through the package exports.
RUNTIME.md is the contract — the window.oma API in both modes, what a
sandboxed app can still do, and the traps that only bite authors who aren't the AI. It carries a
version, and test/runtime-contract.mjs pins it to the two runtimes' real surfaces, so it can't
drift from them silently.
Security model
Trust is tiered by where an app came from — SECURITY.md has the detail.
- Local, full trust: your apps, AI-built apps, the system apps, and everything installed from the
App Store — including
OMA_APP_STORE_DIRSfolders. They run in direct mode with the realwindow.oma. - Sandboxed: apps installed with
--sandboxed, and apps opened through a share, run behind the runner — a sandboxedsrcdociframe whose bridge reaches only the app's own collection unless granted more. - App functions run on your machine and can make network requests. On by default;
OMA_FUNCTIONS=0turns them off. - The AI can operate the open app (
screen_read/screen_act) the way you could, but it cannot confirm a deletion for you. - Reserved
security:*/policy:*config keys are out of reach of generic data writes; the HTTP transport binds to loopback.
Design positions (why it's built this way)
- UI and data persist separately, both versioned. Apps are views; collections are truth; the ledger is history. Swap either without losing the other.
- The AI talks domain commands, never SQL, never raw state. That's what makes human+AI concurrent editing safe (idempotency + optimistic concurrency at the command layer).
- Extension-first. Everything rides the MCP Apps bridge — no host-private APIs.
One codebase should serve every host that renders
ui://. - Single-purpose, not composite. Each app owns one scenario and its own collection; the engine mints a new one rather than cramming features into an old one. System apps (settings, dashboard) are the deliberate exception — engine-owned, privileged, allowed to see across collections.
Troubleshooting
Development
Contributions need nothing signed — MIT in, MIT out (CONTRIBUTING.md).
Status and roadmap
Early v0 — proven end-to-end on Claude Desktop; cross-vendor render + shared store proven on Codex desktop and the browser viewer.
Where it stands:
- engine: registry + shell + generic data commands + ledger
- system apps installed (settings, dashboard, app-store); App Store apps (the
@openmcp-app/oma-storepackage) with live previews, one-click install - AI app creation loop (guide → save → open)
- in-context onboarding (the
get_startedprompt → the AI builds a first app for how you work) - security foundation: trust tiers + sandboxed runner + reserved config keys
- multi-host discovery installer (Claude Desktop · Claude Code · Codex) + shared per-user store
-
npxone-command install (@2nd1st/open-mcp-appson npm) - self-hosted remote (Streamable HTTP) as a supported shape → claude.ai / ChatGPT / mobile
off an engine you run — the transport exists (
src/http.mjs) and has been live-tested over HTTPS; what's missing is the hosted story, since the engine binds127.0.0.1by design. Those browser hosts already work against the hosted openmcp.app; this box is about doing it yourself - one-click install with no shell
- app export/import → sharing → community App Store (review + runner sandbox activate here)
License
MIT, for the whole repository — the engine and the system apps in
components/ alike (the App Store package is MIT too) (LICENSE ·
LICENSING.md). Use it, fork it, modify it, embed it, run a
modified version as a hosted service; keep the copyright notice with substantial
portions you redistribute. That is the whole obligation. Up to v0.5.2 the engine
was AGPL-3.0-only under a directory split — see LICENSING.md
for what changed and why.
The names open-mcp-apps, openmcp.app, SecondFirst, and 2nd1st,
and their logos, are not granted by the license — see
TRADEMARKS.md. Fork the code freely; give your fork its own name.
Copyright © 2026 2nd1st.
© 2026 2nd1st
來源:README.md,提交 880c3d6
工具
0版本歷史
1- v0.5.9最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分