anywidget-mcpPython widgets for AI collaboration.
Use AnyWidgets in MCP conversations or expose live notebook widgets to browser agents.
Use AnyWidgets in MCP conversations or expose live notebook widgets to browser agents.
anywidget-mcp turns AnyWidgets, Python objects with JavaScript interfaces, into tools that open inside a conversation. It uses MCP Apps, the Model Context Protocol extension for interactive tool results.
uvx --from 'anywidget-mcp[server]' --with wigglystuff anywidget-mcp serve wigglystuff:ColorPicker --port 8010Requires Python 3.10+ and uv, a Python package runner. Getting started connects the server to Inspector Chat and checks that the model reads your selection.
| I want to… | Start here |
|---|---|
| Render my Python widget in a conversation | Write a widget |
| Let a browser agent operate live notebook widgets | Expose widgets with WebMCP |
| Let the model provide data or starting values | Pass input to widgets |
| Choose what the model can read after interaction | Share state with the model |
| Expose several tools or open widgets together | Combine widgets and tools |
| Render large datasets and query results | Work with large widgets |
| Let a model create an interface from Python source | Create widgets from source |
| Connect a host or run a server | Deployment |
How it works explains the tool, widget, and state contracts. The API reference lists signatures, defaults, and errors.
Experimental software. The API may change between releases.