Osaa Metrics
БесплатноНе проверенChat-native analysis of official statistics: an MCP server and Python library to find indicators, build a semantic layer, and chart them from your AI agent.
Описание
Chat-native analysis of official statistics: an MCP server and Python library to find indicators, build a semantic layer, and chart them from your AI agent.
README
A chat-native pair-analyst over a catalogue of official statistics. The Python library
(osaa_metrics) pairs a long "One Big Table" of indicators with a
Boring Semantic Layer (BSL) model.
The MCP server exposes that to Claude Desktop, where an analyst discovers indicators in
the discovery widget, Saves a working set, builds the core table, defines a core
semantic table, and composes queries and charts at runtime — a chart factory, not a
dashboard.
What you need
- An Apple Silicon Mac on macOS 14 or later, or Linux, with a terminal. Intel Macs cannot install this version: the model runtime ships no build for them. Windows is untested.
- uv and just.
- Claude Desktop, for the analysis. It runs on macOS and Windows; there is no Linux build, so on Linux you can install and run the server but not analyse in this version.
- About 2.3 GB of disk for the model files, plus the sample data. On Linux without a GPU the install downloads several GB more, because the runtime's default build targets GPUs. It works; it is just large.
- No account, key, or token. A Hugging Face token is optional: export
HF_TOKENin your shell andjust encoderdownloads under a higher rate limit.
Install
git clone https://github.com/UN-OSAA/osaa-metrics.git
cd osaa-metrics
just setup # installs the server and the encoder runtime into .venv — runs: uv sync --frozen --extra mcp --extra encoder
just data # downloads the sample data (about 75 MB) into data/
just encoder # downloads the BGE-M3 model files (about 2.3 GB) into the model cache
just check # confirms the data opens and the model files are cached
just check prints the two data files, the indicator count, and the model cache line
with the folder it looked in. A failure names the recipe that fixes it.
just app opens the playground in your browser. Upload a session.json and it rebuilds the
core table, lists the dimensions and measures, and replays each saved query and chart
against the data (data/ unless .env points elsewhere). A core table schema CSV, with
an optional core-model YAML, rebuilds the core table and lists the dimensions and measures.
The repository ships a setup runbook at
skills/osaa-setup/. To use it as a Claude Skill, see
Use Skills in Claude.
Connect Claude Desktop
Add the server to Claude Desktop's config file, with the absolute path of the clone:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"osaa-metrics": {
"command": "uv",
"args": ["run", "--frozen", "--no-sync", "--directory", "/absolute/path/to/osaa-metrics", "osaa-mcp"]
}
}
}
--frozen and --no-sync keep a Desktop launch from rewriting uv.lock or reshaping
.venv. Quit and reopen Claude Desktop; osaa-metrics appears among the connected
servers. Start a chat and ask to open indicator discovery. The repository ships an
analyst playbook at skills/osaa-metrics/. To use it as a Claude Skill, see
Use Skills in Claude.
The data
The sample is two parquet files published on Hugging Face as
spencerlima/osaa-metrics
(CC-BY-4.0). The indicators come from the World Bank and UNESCO's Institute for
Statistics — credit them when you share the data. just data puts the files in data/,
where the server looks by default; to use other files set OSAA_DATA_MASTER_URL and
OSAA_DATA_META_URL in .env (a local path or a URL each).
master— one row per indicator × country × year. Anindicator_codenames exactly one indicator across the whole table — no two indicators share one.meta— one row per indicator, with a 1024-numberembeddingper row. Every discovery path filters on that column, keyword search included, and building the core table accepts only codes present there. Files without embeddings surface no indicators; the sample carries them.- The core table starts at year 2000 by default. An indicator with no rows from 2000
on still gets a column, holding only NULLs; the core table summary reports its
null_percentageaccordingly.
Limits worth knowing
- Run one analysis chat at a time. Every chat talks to the same server, and they all share one core table. Picking indicators in a second chat replaces what you built in the first. Download the session before you switch.
- State is process memory. Restarting Claude Desktop restarts the server empty.
download_sessionis the save. - Widgets need the network. The discovery, summary, and chart widgets load their libraries from public CDNs; offline they do not render.
session.jsonis pre-1.0. Itsschema_versionis1; a later version may change the shape without a migration path.- Claude Desktop is the analysis surface. A client that renders no widgets cannot complete the flow in this version.
Repository layout
AGENTS.md the vendor-neutral agent entry point
justfile setup · data · encoder · check · app
src/osaa_metrics/ the library — discovery, core_table, semantic, summarize, session, theme
encoders/ Encoder Protocol + the local encoder
mcp/ FastMCP composing server (osaa-mcp / osaa-mcp-http)
mcp_discovery/ discovery sub-server + the discovery widget
_schemas/ bsl_model.schema.json, session.schema.json
app/playground.py the playground notebook (`just app`)
skills/osaa-metrics/ the analyst playbook
skills/osaa-setup/ the setup runbook
.claude/skills/osaa-* symlinks to the two skills above
.agents/skills/osaa-* the same, for Codex · Cursor · OpenCode
data/ the sample data, after `just data`
Library use
from osaa_metrics import ... exposes the substrate without the server ([mcp] is
optional).
Development
uv sync --frozen --extra dev --extra mcp
OSAA_SKIP_NET=1 uv run pytest -q
Licence
Apache-2.0 — see LICENSE and NOTICE.
Установить Osaa Metrics в Claude Desktop, Claude Code, Cursor
unyly install osaa-metricsСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add osaa-metrics -- uvx --from git+https://github.com/UN-OSAA/osaa-metrics osaa-metricsПошаговые гайды: как установить Osaa Metrics
FAQ
Osaa Metrics MCP бесплатный?
Да, Osaa Metrics MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Osaa Metrics?
Нет, Osaa Metrics работает без API-ключей и переменных окружения.
Osaa Metrics — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Osaa Metrics в Claude Desktop, Claude Code или Cursor?
Открой Osaa Metrics на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Gmail
Read, send and search emails from Claude
автор: GoogleSlack
Send, search and summarize Slack messages
автор: SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Klavis AI
Open Source MCP Infra. Hosted MCP servers and MCP clients on Slack and Discord.
Work90210/APIFold
Turn any REST API into a hosted MCP server, with ready-made public servers for GitHub, Stripe, Slack, OpenAI, Notion and more.
автор: Work90210arikusi/deepseek-mcp-server
DeepSeek AI chat and reasoning with multi-turn sessions, function calling, thinking mode and cost tracking.
автор: arikusihashgraph-online/hashnet-mcp-js
Discover, register and chat with AI agents on the Hashgraph network via the Registry Broker.
автор: hashgraph-onlineprofullstack/mcp-server
Developer utilities: SEO optimization, document conversion, domain lookup, email validation, QR codes, weather data, social media posting and security scanning.
автор: profullstackWayStation-ai/mcp
Connect MCP hosts to apps such as Notion, Slack, Monday and Airtable.
автор: waystation-aiCompare Osaa Metrics with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории communication
