# open-mcp-apps

Local execution layer for persistent interactive micro-apps inside AI agents. It equips coding assistants with reusable HTML interfaces linked to SQLite storage.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 36
- Author: 2nd1st
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/2nd1st/open-mcp-apps
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/mcp/open-mcp-apps

## What it does

The server implements the MCP Apps protocol specification (`ui://`, `io.modelcontextprotocol/ui`) to connect desktop assistants to a local browser runtime. When asked for an interface, the model writes a standalone HTML widget tailored to the `window.oma` API and registers it. Once saved, the application remains accessible across subsequent chats.

Application state is decoupled from the user interface. Records reside in SQLite collections backed by an append-only `change_event` log with optimistic concurrency. This mechanism lets humans and models update the same database safely without clobbering each other. The package arrives with 34 tools and three pre-configured system apps.

Running this engine demands Node 22 or newer. The local server binds strictly to `127.0.0.1` over stdio, so web interfaces like `claude.ai` cannot reach your machine without using the hosted `openmcp.app` service. Always install the scoped package `@2nd1st/open-mcp-apps`, because an unrelated project owns the plain unscoped package name.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `OMA_DB`, `OMA_VIEWER`, `OMA_DYNAMIC_TOOLS` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env OMA_DB=<OMA_DB> --env OMA_VIEWER=<OMA_VIEWER> --env OMA_DYNAMIC_TOOLS=<OMA_DYNAMIC_TOOLS> --transport stdio open-mcp-apps -- npx -y @2nd1st/open-mcp-apps
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add open-mcp-apps --env OMA_DB=<OMA_DB> --env OMA_VIEWER=<OMA_VIEWER> --env OMA_DYNAMIC_TOOLS=<OMA_DYNAMIC_TOOLS> -- npx -y @2nd1st/open-mcp-apps
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "open-mcp-apps": {
            "command": "npx",
            "args": [
                "-y",
                "@2nd1st/open-mcp-apps"
            ],
            "env": {
                "OMA_DB": "<OMA_DB>",
                "OMA_VIEWER": "<OMA_VIEWER>",
                "OMA_DYNAMIC_TOOLS": "<OMA_DYNAMIC_TOOLS>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "open-mcp-apps": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@2nd1st/open-mcp-apps"
            ],
            "env": {
                "OMA_DB": "<OMA_DB>",
                "OMA_VIEWER": "<OMA_VIEWER>",
                "OMA_DYNAMIC_TOOLS": "<OMA_DYNAMIC_TOOLS>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e OMA_DB=<OMA_DB> -e OMA_VIEWER=<OMA_VIEWER> -e OMA_DYNAMIC_TOOLS=<OMA_DYNAMIC_TOOLS> open-mcp-apps npx -y @2nd1st/open-mcp-apps
```
Replace <…> with your own values

## When to use it
- Retain AI-generated HTML interfaces across independent chat sessions
- Maintain persistent application data within local SQLite storage
- Avoid race conditions during parallel updates using event versioning
- Provide desktop AI clients with native themed widgets via stdio

## Example prompts
- "Create an HTML issue tracker and save it into the open-mcp-apps registry."
- "Launch the dashboard app and retrieve recent records from the SQLite store."

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
