dpc00 avatar

Sublime Text MCP

dpc00/sublime-mcp

Runs a Python MCP server outside Sublime Text that talks to an HTTP bridge plugin inside the editor, giving Claude direct control over your ST4 instance. You get 59 tools covering the full API surface: read file content and selections, navigate to lines, edit via str_replace or insert operations, search across projects, run builds, manage layouts, and even send commands to Terminus terminal tabs. The architecture keeps ST responsive by running the MCP protocol over stdio to a separate process that forwards requests via localhost HTTP. Useful when you want Claude to perform multi-step refactoring, navigate large codebases, or orchestrate edits across multiple open files without leaving your existing ST workflow.

GitHub stars
4
tools
26
transport
STDIO
last updated
Sep 9, 2026

Tools

26 tools

Public tool metadata for what this MCP can expose to an agent.

discover_toolsLists a tree of categories (category=) or searches (query=) the complete internal catalog of 379 typed Sublime capabilities.

Lists a tree of categories (category=) or searches (query=) the complete internal catalog of 379 typed Sublime capabilities.

No parameter schema in public metadata yet.

batchInvokes discovered capabilities without flooding the model's initial tool context.

Invokes discovered capabilities without flooding the model's initial tool context.

No parameter schema in public metadata yet.

get_helpServes the agent how-to guide live.

Serves the agent how-to guide live.

No parameter schema in public metadata yet.

get_active_file

No parameter schema in public metadata yet.

project_search

No parameter schema in public metadata yet.

save_file

No parameter schema in public metadata yet.

str_replace_based_edit_tool

No parameter schema in public metadata yet.

ui_screenshotReturns a real image of any Sublime window, including windows behind others, open dialogs or menus, and cropped or zoomed regions.

Returns a real image of any Sublime window, including windows behind others, open dialogs or menus, and cropped or zoomed regions.

No parameter schema in public metadata yet.

ui_press_keyOperates palettes, quick panels and menus with real keys once the user has been idle.

Operates palettes, quick panels and menus with real keys once the user has been idle.

No parameter schema in public metadata yet.

ui_type_textTypes text into Sublime windows with real keys once the user has been idle.

Types text into Sublime windows with real keys once the user has been idle.

No parameter schema in public metadata yet.

ui_clickClicks inside Sublime windows with a real mouse once the user has been idle.

Clicks inside Sublime windows with a real mouse once the user has been idle.

No parameter schema in public metadata yet.

ui_hoverHovers over Sublime windows to show popups, including language-server hovers, with a picture of the popup.

Hovers over Sublime windows to show popups, including language-server hovers, with a picture of the popup.

No parameter schema in public metadata yet.

list_native_windowsLists a native dialog or menu blocking Sublime's main thread and reads the message of a Windows task dialog.

Lists a native dialog or menu blocking Sublime's main thread and reads the message of a Windows task dialog.

No parameter schema in public metadata yet.

dismiss_native_windowDismisses a native dialog or menu that has blocked Sublime's main thread, and can cancel the Windows file-operation progress window.

Dismisses a native dialog or menu that has blocked Sublime's main thread, and can cancel the Windows file-operation progress window.

No parameter schema in public metadata yet.

close_fileCloses a tab by path, name or index, with discard to close a tab with unsaved edits without the Save Changes dialog.

Closes a tab by path, name or index, with discard to close a tab with unsaved edits without the Save Changes dialog.

No parameter schema in public metadata yet.

get_quick_panelReads the contents of a quick panel.

Reads the contents of a quick panel.

No parameter schema in public metadata yet.

pick_quick_panelPicks an item in a quick panel, with wait_ms for a list that is still loading.

Picks an item in a quick panel, with wait_ms for a list that is still loading.

No parameter schema in public metadata yet.

click_menu_itemClicks a menu item.

Clicks a menu item.

No parameter schema in public metadata yet.

get_view_regionsInspects regions a plugin drew in a view, with last, html and max_chars options.

Inspects regions a plugin drew in a view, with last, html and max_chars options.

No parameter schema in public metadata yet.

get_view_phantomsInspects phantoms a plugin drew in a view, with last, html and max_chars options.

Inspects phantoms a plugin drew in a view, with last, html and max_chars options.

No parameter schema in public metadata yet.

claim_resourceLets an agent take a turn on a shared resource such as the input and control panels.

Lets an agent take a turn on a shared resource such as the input and control panels.

No parameter schema in public metadata yet.

release_resourceReleases a shared resource claimed by an agent.

Releases a shared resource claimed by an agent.

No parameter schema in public metadata yet.

list_claimsLists current claims on shared resources.

Lists current claims on shared resources.

No parameter schema in public metadata yet.

run_commandRuns a registered Sublime Text command.

Runs a registered Sublime Text command.

No parameter schema in public metadata yet.

eval_pythonRuns Python in Sublime's plugin host for anything the typed tools don't cover.

Runs Python in Sublime's plugin host for anything the typed tools don't cover.

No parameter schema in public metadata yet.

get_package_mcp_infoReturns information about a Sublime package for controlling it through eval_python and run_command.

Returns information about a Sublime package for controlling it through eval_python and run_command.

No parameter schema in public metadata yet.

Sponsors

Readme

Details

Repository
github.com/dpc00/sublime-mcp
Package
sublime-mcp
Transport
STDIO
Registry
MCP registry, active