Tkinter
FreeNot checkedA Model Context Protocol (MCP) server that enables AI agents (like Claude) to view, introspect, and control Tkinter GUIs. Features widget-tree extraction and wi
About
A Model Context Protocol (MCP) server that enables AI agents (like Claude) to view, introspect, and control Tkinter GUIs. Features widget-tree extraction and window-specific screenshots.
README
MCP server for inspecting and automating Tkinter GUI applications.
PyPI Python 3.10+ License: MIT MCP
Overview
An MCP server that enables AI agents to launch, inspect, and interact with Tkinter applications. The server auto-injects an inspection agent via monkey-patching. No modifications to target apps required.

Tools
| Tool | Description |
|---|---|
launch_app |
Start a Tkinter app with inspection enabled |
is_connected |
Check if an app is currently connected |
get_ui_layout |
Get the widget tree as structured JSON |
view_application |
Capture a high-quality JPEG screenshot |
view_application_thumbnail |
Capture a small thumbnail screenshot |
get_window_info |
Get window position and dimensions |
click_widget |
Click a widget (left/right/middle, single/double) |
type_text |
Type text into Entry or Text widgets |
get_widget_by_text |
Find a widget by its text content |
focus_widget |
Set keyboard focus to a widget |
get_focused_widget |
Get the currently focused widget |
get_widget_value |
Get widget value (Entry, Text, Scale, Checkbox, etc.) |
set_widget_value |
Set widget value based on widget type |
get_widget_options |
Get options for Combobox or Listbox |
drag_widget |
Drag and drop between two widgets |
close_app |
Terminate the application |
Installation
uvx (Quick Start)
claude mcp add tkinter-mcp-server -- uvx tkinter-mcp-server
Note: Apps using PIL/ImageTk may have compatibility issues with uvx. Use pip install instead.
pip (Recommended for PIL apps)
pip install tkinter-mcp-server
claude mcp add tkinter-mcp-server -- tkinter-mcp-server
Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"tkinter": {
"command": "tkinter-mcp-server"
}
}
}
For uvx: use "command": "uvx" with "args": ["tkinter-mcp-server"]
How It Works
The server launches Tkinter apps through a custom launcher that patches tkinter.Tk.__init__. This injects an agent that communicates over a local socket, enabling thread-safe inspection and control of the GUI.
flowchart LR
A[MCP Client] <--> B[MCP Server]
B <--> C[Socket]
C <--> D[Agent]
D <--> E[Tkinter App]
Requirements
- Python 3.10+
- macOS, Windows, or Linux
License
MIT
Install Tkinter in Claude Desktop, Claude Code & Cursor
unyly install tkinterInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add tkinter -- uvx tkinter-mcp-serverStep-by-step: how to install Tkinter
FAQ
Is Tkinter MCP free?
Yes, Tkinter MCP is free — one-click install via Unyly at no cost.
Does Tkinter need an API key?
No, Tkinter runs without API keys or environment variables.
Is Tkinter hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Tkinter in Claude Desktop, Claude Code or Cursor?
Open Tkinter on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
by GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
by paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
by S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
Compare Tkinter with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
