Accessible maidr charts in ChatGPT and Claude, explored by sound, braille and screen reader
Runs on your machine from its package; the steps are below.
Not assessed yet.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx maidr-mcp
MCP client config
{
"mcpServers": {
"maidr": {
"command": "uvx",
"args": [
"maidr-mcp"
]
}
}
}Run
docker run -i --rm ghcr.io/xability/maidr-mcp:0.1.2
MCP client config
{
"mcpServers": {
"maidr": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/xability/maidr-mcp:0.1.2"
]
}
}
}An MCP server that shows accessible maidr charts inside ChatGPT and Claude conversations, and lets the conversation's model move the reader through them and run the chart's commands for them.
The model calls show_chart with the data, and the chart appears in the conversation as an MCP App. A blind or low-vision reader Tabs into it and explores it the way they explore any maidr chart: arrow keys, screen reader, sonification, braille. Three things then happen through the model:
maidr_get_layer_data to find it and maidr_navigate to move there, and maidr announces the point by speech, braille and sound. When the reader is typing to the model rather than in the chart, it passes focus: true, since they asked to be taken there, and maidr moves their keyboard focus into the chart to make the move.maidr_list_commands to find the command and the reader's current modes, and maidr_run_command to run it. maidr announces the result as if the reader had pressed the key, and the model tells them which key that was.maidr_list_charts reads it live.Experimental. Checked end to end in the MCP Apps SDK's reference host (below). Not yet checked in claude.ai or ChatGPT.
show_chart draws the chart on the server with matplotlib and py-maidr, so the model sends numbers rather than an SVG. The SVG reaches the chart view in the tool result's _meta, which is not added to the model's context.
The view loads maidr.js and the MCP Apps SDK from cdn.jsdelivr.net, the only domain its CSP declares, at pinned versions.
maidr.js registers its own WebMCP tools on document.modelContext. No host hands a view's tools to the model yet (ext-apps#797), so the view supplies document.modelContext itself. Each server tool of the same name relays its call to the view that is open:
The poll is a long poll: the server holds it for up to 20 seconds until a call comes, so the call reaches the chart at once. If the host cuts or refuses a request held that long, the view falls back to short polls, which the server answers at once, one every 2 seconds, so the model's call is still answered within the 10 seconds the server waits for the chart. The view tries a long poll again after a minute, and waits twice as long after each one the host cuts.
If hosts adopt WebMCP for MCP Apps, as ext-apps#798 proposes, maidr's tools reach the model directly and the relay can go.
On each key the reader presses in the chart, the view sends their position with ui/update-model-context.
update_chart draws a new chart for a viewId and relays it to that view, which swaps it in place: maidr lets go of the old chart, with any move or command still waiting for the reader in it, and binds the new one. When something was waiting, the chart's status line says it went, and update_chart tells the model so it can take back what it promised the reader. The server keeps the latest chart, so a view that missed the swap, out of view or mounted again by the host, catches up on its next poll.
The view never moves the reader's focus itself, except to put a reader back into the chart update_chart replaced. maidr moves it into the chart only when the model passes focus: true, which the server's instructions and the tools' descriptions tell it to do only when the reader asked to be taken somewhere or for something now, and never because they left the chart. Any other move or command the model makes while the reader is outside the chart waits for them, as does one with focus: true that could not take them in (focused: false). Until they enter the chart, the view's status line says so: "The assistant has a move waiting for you: Tab into the chart to hear it." After update_chart the same line says "Chart updated: ", until the reader enters the chart, by Tab or with focus: true; when a move or command waits as well, it says both.
| Tool | Called by | Does |
|---|---|---|
show_chart | model | Draws the chart and shows it. Returns the viewId the other tools take. |
update_chart | model | Draws a new chart and puts it in place of the one in that viewId's view. Adds no view. A reader in the chart stays in it, on the new chart; anyone else keeps their focus. Both are told it changed. |
maidr_list_charts | model | Returns the chart's layers, point counts, and, while the reader is in the chart, where they are, live. Silent. |
maidr_get_layer_data | model | Returns a page of a layer's points, each with the target that maidr_navigate takes. Silent. |
maidr_navigate | model | Moves the reader to a point and announces it. With focus: true, for a reader who asked to be taken there, maidr first moves their keyboard focus into the chart, and answers focused: true, or focused: false when it could not, leaving the move to wait for them. |
maidr_list_commands | model | Returns the reader's commands, each with its id, title, keys, and whether the model can run it, and the reader's current modes (text, sound, braille, autoplay and more). Silent. |
maidr_run_command | model | Runs one of the reader's commands, such as toggle_braille, autoplay_forward or go_to_max_value, as if they had pressed its keys, and announces the result. Commands that open a dialog or text field are the reader's own. With focus: true, for a reader who asked for it now, maidr first moves their keyboard focus into the chart, and the command runs in turn half a second after they hear where they are (applied: "queued", focused: true), or answers focused: false when it could not, leaving the command to wait for them. |
maidr_view_poll, maidr_view_reply, maidr_view_svg | the chart view only | Carry the relay, and the SVG for update_chart and for hosts that drop _meta. |
show_chart and update_chart take one of these chart types, the ones py-maidr marks stable. Each maps onto the maidr layer type shown:
type | Fields | maidr layer | The model can move the reader there |
|---|---|---|---|
bar | categories, series (one series, or several side by side, or stacked) | bar, dodged_bar, stacked_bar | yes |
line | x (numbers or labels), series | line | yes |
step | x, series, where (post, pre or mid) | step | yes |
scatter | x, y, and trend for a least-squares line | point, and smooth for the trend line | to the points, not the line |
histogram | values, bins | hist | yes |
box | groups | box | no |
violin | groups | violin_box, violin_kde | no |
heatmap | x_labels, y_labels, values, z_label | heat | yes |
pie | categories, values (read clockwise from 12 o'clock) | pie | no |
candlestick | dates, open, high, low, close | candlestick | no |
Every type also takes title, x_label and y_label. A pie has no axes, so there they name what the slices are and what the values measure.
The model reads every layer's points with maidr_get_layer_data. Where the last column says no, maidr gives the points no target: the reader moves through them with the keys, and maidr_navigate answers layer not navigable.
Once the server is connected, a reader asks in plain words; nobody names a tool. The prompts below are grouped by what the reader is doing, and each says which tools the model is expected to call. Paste the data into the conversation, or let the model use numbers it already has from earlier in the chat.
| Scenario | Prompt | Chart |
|---|---|---|
| Sales report | "Show my quarterly revenue as a bar chart: Q1 120, Q2 180, Q3 150, Q4 210, in thousands of dollars." | bar |
| Comparing groups | "Compare these two stores side by side by month: North 40, 52, 61, 58 and South 35, 49, 66, 70 for January to April." | bar, two series |
| Parts of a total | "Stack this year's energy mix by quarter: coal, gas, solar and wind. The numbers are below." | bar, stacked |
| A trend over time | "Plot daily temperatures for last week as a line: 18, 21, 19, 24, 26, 23, 20 degrees, Monday to Sunday." | line |
| Several trends | "Draw a line chart of the US, Korea and Germany unemployment rates from 2015 to 2025 in the table below, one line each." | line, three series |
| A value that changes in steps | "Show our pricing tier over the year as a step chart: 9 dollars until March, 12 until August, then 15." | step |
| A relationship | "Make a scatter plot of study hours against exam score for these 30 students, with a trend line." | scatter with trend |
| A distribution | "Here are 200 response times in milliseconds. Show me a histogram with 20 bins." | histogram |
| Spread and outliers | "Show box plots of the reaction times for the control, low-dose and high-dose groups." | box |
| The shape of a distribution | "Same data, but as violins, so I can hear where each group's values bunch up." | violin |
| A grid of values | "Show a heatmap of website visits by weekday and hour; label the colour scale 'visits'." | heatmap |
| Shares of a whole | "Make a pie chart of how my monthly budget splits: rent 45%, food 20%, transport 10%, savings 15%, other 10%." | pie |
| Stock prices | "Show a candlestick chart of this stock's open, high, low and close for the last ten trading days." | candlestick |
The model calls show_chart once, and the chart appears with the viewId the other tools use.
| Prompt | What the model does |
|---|---|
| "Take me to the highest bar." | maidr_get_layer_data to find it, then maidr_navigate with focus: true; maidr announces it by speech, braille and sound. |
| "Which month had the lowest temperature? Don't move me, just tell me." | maidr_get_layer_data only, and answers in the chat. |
| "Go to the first point where the score is above 90." | Finds the point in the layer data and moves there. |
| "What is this point?" (while in the chart) | Answers from the position the chart reported, or reads it live with maidr_list_charts. |
| "How many points does this chart have, and where am I?" | maidr_list_charts. |
| "Jump to Q3 in the South series." | maidr_navigate to that series and category. |
| "Take me to the lowest close in the candlestick chart." | Says that maidr does not let the model move the reader there, and offers the keys instead (see the table above). |
| Prompt | Command the model runs |
|---|---|
| "Turn braille on." / "Turn the sound off." | toggle_braille, toggle_sound |
| "Stop reading the text, I only want the tones." | toggle_text |
| "Play the whole chart for me from left to right." | autoplay_forward |
| "Faster." / "Stop." | speed_up_autoplay, stop_autoplay |
| "Go to the maximum value." / "Now the minimum." | go_to_max_value, go_to_min_value |
| "Jump to the last point." | move_to_right_extreme |
| "Switch to the trend line." | next_layer |
| "Turn on high contrast." | toggle_high_contrast |
The model first calls maidr_list_commands to see what the reader can run and which modes are on, then maidr_run_command, and tells the reader which key does the same thing next time.
| Prompt | What the model does |
|---|---|
| "Add December: 230." | update_chart with the new data, in the same view. |
| "Now show it as a line instead of bars." | update_chart with type: "line". |
| "Use 10 bins instead of 20." | update_chart on the histogram. |
| "Split it by region." | update_chart with one series per region. |
A reader who was in the chart stays in it, on the new chart, and hears that it changed.
autoplay_forward, and answers from the layer data.toggle_braille; a box chart cannot be navigated by the model, so it tells the reader the keys to reach that box.maidr-mcp is published three ways, at the same version:
maidr-mcp, run with uv. uvx maidr-mcp serves HTTP at 127.0.0.1:8000/mcp; uvx maidr-mcp --stdio serves a host that starts the server itself. uvx maidr-mcp@latest takes the newest release rather than one uv has cached.ghcr.io/xability/maidr-mcp, tagged with each version and latest. It serves HTTP at /mcp on port 8000.io.github.xability/maidr-mcp, for clients that add servers from the registry.What the server needs depends on how the host reaches it:
| Host | How it connects | What the server needs |
|---|---|---|
| Claude (web, Desktop, mobile) | a custom connector, which takes a remote MCP server | a public HTTPS address |
| ChatGPT | a developer-mode app | a public HTTPS address, or Secure MCP Tunnel to your own machine |
| ChatGPT desktop app | its own MCP servers, started over STDIO | nothing hosted; see below for what is untested |
# Make a token once, and keep it: it is the <token> in each host's URL below.
export MAIDR_MCP_TOKEN="$(python3 -c 'import secrets; print(secrets.token_urlsafe(32))')"
uvx maidr-mcp --host 0.0.0.0 --port 8000
# or
docker run -p 8000:8000 -e MAIDR_MCP_TOKEN ghcr.io/xability/maidr-mcp
The endpoint is /mcp, over Streamable HTTP, and with a token also /mcp/<token>.
Claude. Add a custom connector: Customize > Connectors > Add custom connector, with https://<your-host>/mcp/<token>.
ChatGPT. Turn on developer mode, then create an app for https://<your-host>/mcp/<token>. Developer mode is available on the web for Plus, Pro, Business, Enterprise and Education accounts.
Without a token, anyone who can reach the server can draw charts. With one, every HTTP request but OPTIONS (CORS preflights, probes) has to carry it, and any other gets 401. Set it with MAIDR_MCP_TOKEN, with --token-file or MAIDR_MCP_TOKEN_FILE naming a file that holds just the token, or with --token. Over STDIO there is none: the host starts the server itself.
A request carries the token one of two ways:
/mcp/<token>. Claude's custom connectors and ChatGPT's developer-mode apps take a URL and nothing else short of OAuth, so this is the form for them.Authorization: Bearer <token> on /mcp, for clients that can send one.python3 -c 'import secrets; print(secrets.token_urlsafe(32))' makes a good one. The server refuses a token shorter than 16 characters, or one holding anything but letters, digits and -._~.
/mcp/<redacted>. A proxy, load balancer or platform in front of the server may log the full URL; use the header where the client can send one.--token shows in the process list to other users of the machine. Prefer the variable, or a file: with Docker secrets, -e MAIDR_MCP_TOKEN_FILE=/run/secrets/<name>.Your own machine, through Secure MCP Tunnel. ChatGPT calls an app's MCP server from OpenAI's side, so it cannot reach localhost directly. OpenAI's Secure MCP Tunnel connects it to a server that stays off the internet:
maidr-mcp (HTTP at 127.0.0.1:8000/mcp) or maidr-mcp --stdio.tunnel_id from the Platform's tunnel settings and a runtime API key.The ChatGPT desktop app's own MCP servers. The desktop app can start a local server itself. Open Settings > MCP servers > Add server, choose STDIO, and give it this command, which needs uv:
uvx maidr-mcp --stdio
The desktop app shares this configuration with the Codex CLI and IDE extension. There are two caveats:
maidr-skill teaches AI agents to make the charts they write accessible, in Python, R or JavaScript. Both can be installed at once. The server's instructions and the skill split the charts the same way, and both tell the model to make each chart one way only:
| The request | Goes to |
|---|---|
| A chart to see or explore in the conversation, of one of the types above | show_chart, and update_chart to change it |
| Plotting code, a file, a notebook, a web page or a report; another chart type, several panels, or a styled chart | the skill |
| Any chart in a terminal, or another host that shows no MCP Apps | the skill |
The maidr_* tools here reach only the charts show_chart opened. A page the skill makes runs maidr.js, which, in a browser that supports it, offers tools of the same names to an agent there, without a viewId; the instructions tell the model which is which. MCP servers added in the ChatGPT desktop app reach the Codex CLI and IDE extension too, where the skill is often installed, so the split matters there most.
e2e/run.sh checks the whole loop without a ChatGPT or Claude account. It does three things:
examples/basic-host, at tag v2.0.3).cd e2e && npm install && npx playwright-core install chromium && cd ..
bash e2e/run.sh
With MAIDR_MCP_TOKEN set, it runs the server behind that token, and the host reaches it at /mcp/<token>.
It checks:
maidr_list_commands included, and maidr_run_command offers exactly the commands maidr lists as runnable;focus: true, maidr_navigate takes a reader typing in the host page into the chart: their focus lands in it, the point is announced, the status line clears as on a Tab in, and their arrow keys move on from there. Within 10 seconds maidr moves their focus nowhere again: a move and a command with focus: true answer focused: false, wait, and the status line names them. After that a command with focus: true takes them in, answers queued, and runs after what waited;maidr_list_charts gives the model the position a command took the reader to;update_chart changes the chart in its own view, with no view added: a reader outside it keeps their focus, a reader in it stays in it, both are told, and maidr reads only the new chart; what waited for the reader in the old chart goes with it, and both the model and the status line say so, and a move waiting in the new one joins the change in the status line;update_chart included, and stops polling when the chart is closed.MAIDR_JS_FILE=/path/to/maidr/dist/maidr.js bash e2e/run.sh runs the same checks against a local build of maidr.js in place of the pinned release.
ui/update-model-context on the next turn, so within a turn the model context misses the model's own moves and commands, and the reader moving on while the model answers. maidr_list_charts reads the position live, and the server's instructions tell the model to call it when the reader asks about "this point" and the context may be stale. What remains: maidr knows the position only while the reader is in the chart, so while they are typing to the model the last report stands; and a model that skips the call answers from the context alone.focus: true, a move or command made while the reader is typing to the model is kept, and happens when they Tab back into the chart: the move first, then the commands, half a second apart. The tool answers applied: "on-next-focus" and the model is told to say so; the chart's status line says so too, where a screen reader browsing the conversation finds it. With focus: true, which the model is told to pass only when the reader asked, maidr moves their focus into the chart and does it there. What remains:
focused: false, and the reader Tabs in themselves and finds the move or command waiting. Chromium and Firefox let the chart take focus.focused: false and waits like one without focus. Each chart view is a page of its own, so the limit does not span charts: the model could take the reader into a second chart at once, and only its instructions stop it.focus: true while one is open; nothing else stops it.show_chart call still adds a chart. Claude mounts a new view for every call to a tool with a UI, and keeps the earlier ones. A chart that changes stays in its view only when the model calls update_chart, as the server's instructions ask; a second show_chart is a second view.MAIDR_MCP_TOKEN and every request needs it; Claude and ChatGPT carry it in the URL. That URL, kept in the host's connector settings, is then the secret; rotating it means restarting the server with a new token and updating each host. Full OAuth is not implemented. See An access token. A chart can only be read or driven with its viewId, a random 24-character token.show_chart cannot tell whether its chart appears. Its answer reads the same in every host, since a stateless request does not always say what the client can show. In a host that shows no MCP Apps, such as a terminal, the answer still says the chart is showing. The instructions and the tool's description tell the model not to call it there; nothing else stops it./mcp/<redacted>.cdn.jsdelivr.net. maidr's own AI chat inside the chart works as it does anywhere else, with a key the reader adds.uv sync
uv run ruff check . && uv run ruff format --check .
uv run pytest
bash e2e/run.sh
MAIDR_JS_VERSION in server.py names. update-maidr.yml raises it within about an hour of an npm release, once the checks below pass, so an install or image made from main after that loads it, and the next weekly release takes it to PyPI and GHCR.uvx or Docker install, within maidr>=1.26,<2, so a new install has a release as soon as PyPI does. uv.lock, which the same workflow raises, pins the py-maidr that CI and a checkout test against..github/workflows/update-maidr.yml checks npm and PyPI every hour. A new maidr.js must carry npm provenance from maidr's release workflow, with a Sigstore signature that npm audit signatures verifies. Then ruff, pytest on Python 3.10 and 3.13, and e2e/run.sh run against the new versions, and only when all of them pass does the workflow commit them to main: as fix(deps): when the maidr.js pin moves, since that ships to users, and as chore(deps): when only uv.lock does. A maidr.js that changes its runnable commands fails e2e/run.sh rather than shipping with a stale RunnableCommand. When a check fails, nothing is pushed, and an issue names the versions, the step, and the run. A failure that may pass next time, such as a download or the browser's install, is tried again every hour for a day; one that would only repeat, such as a check failing on the new versions, holds them until the issue is closed or the workflow is run by hand. The issue closes itself once an update at least as new reaches main. Every update pairs npm's latest maidr.js with PyPI's newest py-maidr, so while a maidr.js release fails, a new py-maidr is tried only with it and uv.lock waits too; the issue says how to raise py-maidr alone, by running the workflow by hand with the maidr.js main already loads.
It commits to main itself rather than opening a pull request, by design. maidr.js and py-maidr are reviewed and tested in their own repositories before they are released. What this repository has to check is that its server, its view and the reader's way through the chart still work with them. That means announcements, focus and braille in e2e/run.sh, and the workflow checks all of it before it commits. A pull request opened with the workflow's own token would start no workflow, ci.yml included. It would only wait for a person to merge what the same checks had already passed, and the maidr.js fix it carries would wait with it. To look at each update yourself, disable the workflow and raise the pins in pull requests with scripts/update_maidr.py.
To pick another version, run the workflow from the Actions tab with a maidr.js version, or in a checkout run uv run --no-project python scripts/update_maidr.py update --maidr-js <version> --allow-lower and open a pull request. The next hourly run raises a lower pin again, so to hold maidr.js at an older version, disable the workflow in the Actions tab until maidr releases a fix.
GPL-3.0-or-later, like the rest of maidr.