Phil's ST MCP
This server (MCP Commander) exposes Sublime Text 4 to AI assistants via the Model Context Protocol, providing 63+ tools across these capabilities:
Read & Introspect: Get active file content, selections, cursor context, open files, project folders, symbols, output panel content, phantoms, build variables, command palette entries, commands, menu items, syntaxes, scope/word at cursor, bookmarks, line count, encoding, settings, and window layout.
Navigate: Open files (with line/column jump), move cursor to a specific line, show output panels, and focus pane groups.
Edit: Perform string replacements, replace selections/lines, insert snippets, duplicate lines, toggle comments, sort lines, select/fold lines, undo/redo, and run arbitrary ST commands.
Search: Find patterns in the active file or across project folders, with regex and case-sensitivity options.
File & Project Management: Save, close, or revert files; save all open files; add/remove project folders.
Syntax & Encoding: Set the syntax and character encoding of the active file.
Settings & Window: Set ST settings, toggle the sidebar, set window pane layout, and write to the status bar.
Build: Trigger the current build system or run custom build commands.
Terminus Integration: Send text to any open tab, simulating keyboard input for Terminus terminal tabs.
Scripting: Execute arbitrary Python code in ST's main thread or the system interpreter, and retrieve console logs.
Controls a running Sublime Text 4 instance, providing tools for reading and editing files, navigating, searching, building, managing settings and layout, and executing Python scripts through a local HTTP bridge.
Sublime-MCP: Universal AI Agent Connector for Sublime Text
Gives any MCP-speaking AI agent real control over a running Sublime Text 4
instance: run registered ST commands, read/write views and selections, inspect
tabs and project state, and eval_python in Sublime's plugin host for anything
the typed tools don't cover.
Two optional companion plugins extend this:
debugger-mcp — Debugger package DAP tools (breakpoints, stepping, variables, call stacks) over MCP
lsp-mcp — LSP tools (definition, references, diagnostics, rename, hover) over MCP
Toolset
220 typed sublime-mcp tools cover ST's built-in text/window/application
commands plus read-only state getters, a batch tool (max 50 calls per
request), and eval_python. debugger-mcp adds 102 debugger_* tools;
lsp-mcp adds 123 lsp_* tools.
Agent how-to: docs/AGENT_GUIDE.md (also served live by
get_help). Workflow across all three MCPs: docs/agents.md.
Related MCP server: OpenSpec MCP Server
Ports
Each plugin serves MCP SSE (direct clients) and a plain HTTP bridge. The bundled Node/Python proxies use sublime-mcp's HTTP bridge only. Defaults:
Plugin | MCP SSE | HTTP bridge | Env overrides |
sublime-mcp | 9502 (Win) / 9503 (macOS/Linux) | 9500 (Win) / 9501 (macOS/Linux) |
|
debugger-mcp | 9505 | 9515 |
|
lsp-mcp | 9506 | 9516 |
|
SSE URL form: http://127.0.0.1:<sse-port>/sse. The bundled Node/Python
proxies talk to sublime-mcp's HTTP bridge, not SSE; override with
SUBLIME_MCP_BASE (e.g. http://127.0.0.1:9500).
Installation
1. Clone
git clone https://github.com/dpc00/sublime-mcp.git
cd sublime-mcp2. Install the Sublime Text plugin
Symlink packages/st-plugin into ST's Packages/ directory as sublime-mcp.
Windows (Command Prompt):
mklink /J "%APPDATA%\Sublime Text\Packages\sublime-mcp" "C:\path\to\sublime-mcp\packages\st-plugin"macOS:
ln -s "$(pwd)/packages/st-plugin" "$HOME/Library/Application Support/Sublime Text/Packages/sublime-mcp"Linux:
ln -s "$(pwd)/packages/st-plugin" "$HOME/.config/sublime-text/Packages/sublime-mcp"3. Optional companion plugins
Same pattern: symlink packages/debugger-mcp and/or packages/lsp-mcp into
Packages/ under those names.
Windows:
mklink /J "%APPDATA%\Sublime Text\Packages\debugger-mcp" "C:\path\to\sublime-mcp\packages\debugger-mcp"
mklink /J "%APPDATA%\Sublime Text\Packages\lsp-mcp" "C:\path\to\sublime-mcp\packages\lsp-mcp"macOS:
ln -s "$(pwd)/packages/debugger-mcp" "$HOME/Library/Application Support/Sublime Text/Packages/debugger-mcp"
ln -s "$(pwd)/packages/lsp-mcp" "$HOME/Library/Application Support/Sublime Text/Packages/lsp-mcp"Linux:
ln -s "$(pwd)/packages/debugger-mcp" "$HOME/.config/sublime-text/Packages/debugger-mcp"
ln -s "$(pwd)/packages/lsp-mcp" "$HOME/.config/sublime-text/Packages/lsp-mcp"Restart Sublime Text after linking so the plugins load.
4. Configure your agent
Node:
cd packages/node-proxy
npm install .
npx sublime-mcpPython:
cd packages/python-proxy
pip install .
sublime-mcpOr point an MCP client with SSE transport at the SSE URL (Windows example):
{
"mcpServers": {
"sublime-mcp": { "type": "sse", "url": "http://127.0.0.1:9502/sse" }
}
}Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceRemote-control Unity Editor from any AI IDE via file-based IPC — 62 tools, zero dependencies6520Apache 2.0
- AlicenseBqualityCmaintenanceConnects OpenSpec specification system to AI coding assistants, enabling automated spec-driven development workflows.11372MIT

Elgato MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceBridges AI assistants with Elgato apps via IPC, enabling dynamic tool discovery and notification forwarding.1,5429MIT- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to Nuke for compositing tasks via natural language.8MIT
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Universal AI API Orchestrator — 1,554 tools, 96 services. One install.
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dpc00/sublime-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server