Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add AI-Riksarkivet/ra-mcp --skill ra-mcp-appsgit clone --depth 1 https://github.com/AI-Riksarkivet/ra-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ai-riksarkivet/ra-mcp/ra-mcp-apps)<a href="https://agentmods.dev/skills/ai-riksarkivet/ra-mcp/ra-mcp-apps"><img src="https://agentmods.dev/badge/skills/ai-riksarkivet/ra-mcp/ra-mcp-apps/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ai-riksarkivet/ra-mcp/ra-mcp-apps"><img src="https://agentmods.dev/badge/skills/ai-riksarkivet/ra-mcp/ra-mcp-apps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.01239 |
| Opus 5.5 | $0.00019 | $0.00496 |
| Sonnet 5.5 | $0.00009 | $0.00248 |
| Haiku 4.5 | $0.00005 | $0.00124 |
Grade A, and why
ra-mcp-apps scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP Apps — Quick Reference
Server (FastMCP) ↔ Host (Claude/ChatGPT) ↔ View (sandboxed iframe). The View and Server never talk directly.
Supporting Files
- patterns.md — MCP Apps patterns: polling, chunked data, theming, fullscreen, view persistence (Brick Builder), per-view state, autoResize, command queues
- csp-cors.md — CSP configuration, CORS, stable origins, connectDomains vs resourceDomains
- testing.md — Testing with basic-host, Claude.ai, VS Code, tunnels
Data Flow
| Field | LLM sees? | View sees? | Use for |
|---|---|---|---|
content |
Yes | Yes | Short text summary for model context |
structuredContent |
No* | Yes | Rich data for UI rendering |
_meta |
No | Yes | viewUUID, timestamps, metadata |
*ChatGPT exposes structuredContent to both.
Tool Visibility
| Visibility | LLM? | View? | Use case |
|---|---|---|---|
["model", "app"] (default) |
Yes | Yes | General tools |
["model"] |
Yes | No | LLM-only triggers |
["app"] |
No | Yes | Pagination, refresh, polling, dangerous actions |
Server Quick Start (FastMCP 3.4+)
from fastmcp import FastMCP, Context
from fastmcp.apps import AppConfig, ResourceCSP, UI_EXTENSION_ID
from fastmcp.tools import ToolResult
from mcp import types
mcp = FastMCP("My App")
RESOURCE_URI = "ui://my-app/view.html"
# Tool with UI — creates an iframe
@mcp.tool(app=AppConfig(resource_uri=RESOURCE_URI))
async def show_data(query: str, ctx: Context) -> ToolResult:
has_ui = ctx.client_supports_extension(UI_EXTENSION_ID)
return ToolResult(
content=[types.TextContent(type="text", text="Summary for LLM")],
structured_content={"data": [...], "query": query},
)
# App-only tool — View calls this, LLM never sees it
@mcp.tool(app=AppConfig(resource_uri=RESOURCE_URI, visibility=["app"]))
async def load_page(page: int) -> ToolResult: ...
# Resource — serves the bundled HTML
@mcp.resource(uri=RESOURCE_URI)
def get_ui() -> str:
return Path("dist/mcp-app.html").read_text()
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 119 lines · 47 tokens per session scan A 852b2adee195
ra-mcp-apps is a skill published in the GitHub repository AI-Riksarkivet/ra-mcp (27 stars, last pushed 2d ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,239 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
ra-mcp-apps compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ra-mcp-appsAI-Riksarkivet/ra-mcp | Skill | 27 | 2d ago | Apache-2.0 | A | 47 | Claude Code |
| workspace-buildermondaycom/mcp | Skill | 442 | yesterday | MIT | A | 107 | Claude Code |
| data-cleanupmondaycom/mcp | Skill | 442 | yesterday | MIT | A | 131 | Claude Code |
| forecastmondaycom/mcp | Skill | 442 | yesterday | MIT | A | 127 | Claude Code |
| run-sequencemondaycom/mcp | Skill | 442 | yesterday | MIT | A | 150 | Claude Code |
| win-loss-reviewmondaycom/mcp | Skill | 442 | yesterday | MIT | A | 140 | Claude Code |
| log-activitymondaycom/mcp | Skill | 442 | yesterday | MIT | A | 156 | Claude Code |