AppBI Workboard MCP
Build a working AppBI Workboard mini-app end to end — from raw data all the way to a shareable app — through one self-contained MCP server.
README
AppBI Workboard MCP
Build a working AppBI Workboard mini-app end to end — from raw data all the way to a shareable app — through one self-contained MCP server:
Source -> Dataset -> Data Model -> Workboard -> Share
Connect or pick a data source, create a dataset and its tables, lay down a relationship model, then author the mini-app (forms — incl. photo/OCR capture and a satellite map picker; editable tables that can render as a photo gallery; printable docs; embedded dashboards) with app users, doc webhooks, public links and a delivery workspace. Every mutating tool previews a plan and changes nothing until you confirm.
Charts, full BI semantic measures/explores, and DB-credential source connections stay in the AppBI UI / dashboard MCP. This server owns the Workboard journey.
Setup
Set-Location D:\Appv2\appbi-ai\Skill-AppBI\appbi-workboard-mcp
.\setup-mcp.ps1 # creates .venv, installs deps, seeds .env
.\bootstrap-pat.ps1 # mints your PAT and writes it into .env (see below)
.\run-mcp.ps1 # launches the server (profile=all)
macOS / Linux:
cd /path/to/appbi-workboard-mcp
cp .env.example .env # set APPBI_BASE_URL if not http://localhost:8000
./bootstrap-pat.sh # mints your PAT and writes it into .env
./run-mcp.sh # bootstraps .venv on first run
Get your PAT (the token that connects the MCP)
The MCP authenticates to AppBI with a Personal Access Token (PAT). A PAT cannot mint itself (the call that creates it needs a logged-in account), so this is the one credential you supply once. Three ways, no hand-written code:
- Shipped helper (recommended for first run).
bootstrap-pat.ps1/./bootstrap-pat.sh(orpython bootstrap_pat.py) asks for your AppBI base URL, email and password, mints the token, and writesAPPBI_PAT+APPBI_BASE_URLinto.env. Add--print-onlyto just print it. - From inside your MCP client. If the server is already registered, call
the
bootstrap_personal_access_tokentool with an AppBI email + password — it mints the PAT, connects the running session immediately, and saves it to.env. (health_checkreturnsneeds_patuntil you do.) - Manually. AppBI UI → Settings → Personal Access Tokens → create one,
then paste it into
.envasAPPBI_PAT=....
The token needs these scopes (the helpers grant them for you):
data_sources— discover and create Google Sheets / file sources.datasets— create datasets, tables, the relationship model.explore_charts+dashboards— embedded dashboard screens.workboards(full) — build workboards, app users, public links, and create/manage delivery workspaces.
Register in an MCP client
Add to your client's MCP config (Claude Desktop claude_desktop_config.json,
or .mcp.json for Claude Code). Adjust paths for your OS:
{
"mcpServers": {
"appbi-workboard": {
"command": "D:\\Appv2\\appbi-ai\\Skill-AppBI\\appbi-workboard-mcp\\.venv\\Scripts\\python.exe",
"args": ["D:\\Appv2\\appbi-ai\\Skill-AppBI\\appbi-workboard-mcp\\appbi_workboard_mcp.py"],
"env": {
"APPBI_BASE_URL": "http://localhost:8000",
"APPBI_PAT": "<your-token>",
"APPBI_MCP_PROFILE": "all"
}
}
}
}
Run setup-mcp.ps1 once first so .venv exists.
The journey (canonical workflow)
| Stage | Do this |
|---|---|
| 0 Source | list_data_sources; inspect with inspect_source_schema / list_gsheet_tabs + read_gsheet_rows. Create with create_google_sheets_source (run check_google_data_access first), create_manual_source_from_file, or create_manual_source. |
| 1 Dataset | create_dataset -> add_table_to_dataset per table -> get_table_profile on each (this populates columns_cache). Date table via update_dataset settings. Optional update_table_description / update_dataset_dictionary. |
| 2 Data Model | generate_dataset_model, then refine with suggest_dataset_model_join -> add_dataset_model_join. suggest_workboard_relationships gives lookup-shaped join hints for mini-app forms/tables. |
| 3 Workboard | get_workboard_design_guide (full screen schema) -> author one bundle -> test_screen_js for computed columns -> validate_workboard_bundle -> apply_workboard_bundle(user_confirmed=true). |
| 4 Share | audit_workboard; create_workboard_public_link (form/view URL) and/or deliver_workboard_to_workspace (full app behind app-user login); then run_workboard_runtime_smoke_test. |
Profiles
Default APPBI_MCP_PROFILE=all exposes everything — testers need no config.
Power users can shrink the surface (comma-combinable):
discover (read-only) · source · dataset · model · build · deliver
.\run-mcp.ps1 -Profile build # author/validate/apply only
$env:APPBI_MCP_PROFILE = 'discover,build'; .\run-mcp.ps1
Bundle contract
get_workboard_design_guide() returns the live contract + the full current
screen schema. The bundle:
{
"workboard": {
"name": "Inventory Demo",
"slug": "inventory-demo",
"dataset_id": 47,
"primary_table_id": 101,
"primary_key_columns": ["id"],
"publish": true
},
"layout_json": { "screens": [], "mini_app_nav": { "items": [] } },
"app_users": [],
"webhooks": [],
"workspace": {}
}
Screen kinds: form, table, doc, dashboard. A table screen uses its
table spec (legacy list/grid are not valid). Screen schemas are strict —
only the fields listed in the design guide are accepted.
Gotchas worth knowing (verified against the backend)
- Google Sheets
source_table_nameis the tab name only —"DM_SanPham", never"<spreadsheet_id>.DM_SanPham". columns_cachefills after profiling — callget_table_profileonce on every newly added table before authoring model joins or screens against it.- Pass
workboard.slugexplicitly when delivering via a workspace — the backend does not auto-generate one, and workspace menus key by slug. - Public links require the owner PIN rotated off the default before
create_workboard_public_linksucceeds.
Hit an error while building? Want to extend the MCP?
See MAINTAINERS.md — the debug + upgrade guide:
- Mental model: the AppBI backend is the single gatekeeper; this MCP is thin
tools + a design guide. Most "the MCP can't build X" issues are a design-guide
gap, not missing code (because
applysendslayout_jsonstraight through). - Which layer failed — MCP pre-check (
validate_workboard_bundle) vs backend gate (thebackend_errorenvelope with a Pydantic field path indetail) vs runtime (audit_workboard/ smoke test) — and where each fix goes. - The debugging loop (reproduce with
validate, read the 422detail, curl the backend with the same PAT,APPBI_MCP_LOG_LEVEL=DEBUG). - The upgrade playbook — 3 cases (document a backend-supported field · relax a false pre-check · add a new tool) with exact edit locations, plus a test-before-ship checklist.
- A common-errors → cause → fix table.
Files
| File | Role |
|---|---|
appbi_workboard_mcp.py |
Entry point — imports every stage module |
appbi_wb_core.py |
FastMCP, profiles, HTTP + multipart client, confirmation helpers |
appbi_wb_source.py |
Stage 0 — source discovery + Google Sheets/manual create |
appbi_wb_dataset.py |
Stage 1 — dataset, tables, profiling, descriptions |
appbi_wb_model.py |
Stage 2 — generate-model + relationships + lookup suggestions |
appbi_wb_discovery.py |
Dataset/Workboard/workspace reads + design-context aggregator |
appbi_wb_build.py |
Stage 3 — bundle guide, validation, one-confirm apply |
appbi_wb_authoring.py |
Stage 3 helpers — test-js, access audit, export, public links |
appbi_wb_users.py |
App-user maintenance |
appbi_wb_webhooks.py |
Doc-webhook maintenance + sync history |
appbi_wb_workspace.py |
Workspace delivery + runtime smoke test |
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。