
Coder MCP Server: Setup for Claude, Cursor and Other Apps
Lets Claude, Cursor and other assistants manage Coder workspaces and templates, and edit files and run commands inside workspaces.
Coder has an MCP server built in, so you need a Coder deployment to use it. Run it on your computer with the Coder command line tool, or point your assistant at the address of your own deployment. Both sign in with your existing Coder account.
The tools can start and delete workspaces, delete templates, and run commands inside workspaces. The remote address needs an admin to turn on an experiment first.
Good for
- Developers on a Coder deployment who want an assistant to create and manage workspaces
- Platform teams who author and update Coder templates
- Teams who delegate coding tasks to Coder Agents chats from their assistant
Works in
12 should work
Tap an app to see how to set it up and any known problems.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install Coder MCP
Claude Code
- 1
Copy this prompt.
Add the Coder MCP server to Claude Code. Run this command: claude mcp add coder -- coder exp mcp server Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Coder CLI, signed in with coder login.
Read-only mode: Add --allowed-tools followed by a comma-separated list of the tools to expose, for example coder_list_workspaces,coder_get_workspace. Only those tools are served.
Replace coder.example.com with your Coder deployment. The remote address needs the OAuth2 provider and the mcp-server-http experiment turned on by an admin, per Coder's docs.
Built from the package data we hold. Not yet tested by us.
Tools
Lists your workspaces
Lists the workspaces of the signed-in user.
Try: “List my Coder workspaces.”
Read ·
coder_list_workspacesShows one workspace
Returns the details of a workspace by name or ID, with more data than the list.
Try: “Show the status of my dev workspace.”
Read ·
coder_get_workspaceCreates a workspace from a template
Creates a new workspace from a template. The tool description tells the assistant to confirm the template and settings with you first.
Try: “Create a workspace from the Go template.”
Write ·
coder_create_workspaceStarts, stops or deletes a workspace
Creates a build for an existing workspace to start, stop or delete it. A start can use a preset or parameter overrides.
Try: “Stop my dev workspace.”
Delete ·
coder_create_workspace_buildReads a workspace build log
Returns the logs of a workspace build, to check whether it built.
Try: “Why did my last workspace build fail?”
Read ·
coder_get_workspace_build_logsReads a workspace agent log
Returns the logs of a workspace agent. More logs may appear after the call.
Try: “Show the agent logs for my workspace.”
Read ·
coder_get_workspace_agent_logsLists templates
Lists templates, and shows whether Coder Agents may create workspaces from each.
Try: “What templates can I use?”
Read ·
coder_list_templatesShows a template and its presets
Returns a template's details, parameters and presets for its active version.
Try: “What parameters does the Go template take?”
Read ·
coder_get_templateLists template version parameters
Returns the parameters of a template version, which are the workspace settings you choose when creating one.
Try: “List the settings for this template version.”
Read ·
coder_template_version_parametersCreates a template version
Creates a template version, the step before creating or updating a template. Templates are Terraform that define a development environment.
Try: “Create a new template version from these files.”
Write ·
coder_create_template_versionUploads template files
Creates and uploads a tar file from a map of file names to contents. It is used to build template versions.
Try: “Upload these Terraform files for a new template.”
Write ·
coder_upload_tar_fileCreates a template
Creates a template from a template version.
Try: “Create a template from the version I just uploaded.”
Write ·
coder_create_templateChanges a template's active version
Sets which version of a template new workspaces use.
Try: “Make version 3 the active version of this template.”
Write ·
coder_update_template_active_versionReads a template version log
Returns the import logs of a template version.
Try: “Did my template version import cleanly?”
Read ·
coder_get_template_version_logsDeletes a template
Deletes a template. The tool says this is irreversible.
Try: “Delete the old-go template.”
Delete ·
coder_delete_templateLists your organizations
Lists the organizations you belong to. Being a member does not grant every permission.
Try: “Which Coder organizations am I in?”
Read ·
coder_list_organizationsShows who you are signed in as
Returns the current user, like the whoami command.
Try: “Who am I signed in as on Coder?”
Read ·
coder_get_authenticated_userLists a folder in a workspace
Lists the contents of a directory inside a workspace.
Try: “List the files in /home/coder/project.”
Read ·
coder_workspace_lsReads a file in a workspace
Reads a file from a workspace.
Try: “Read the README in my workspace.”
Read ·
coder_workspace_read_fileWrites a file in a workspace
Writes a file in a workspace.
Try: “Create a config.yaml in my workspace.”
Write ·
coder_workspace_write_fileEdits files in a workspace
Makes edits to files inside a workspace.
Try: “Rename the function in main.go.”
Write ·
coder_workspace_edit_filesRuns a command in a workspace
Runs a shell command in a workspace. A call waits at most 5 minutes, and longer commands run in the background.
Try: “Run the tests in my workspace.”
Runs code ·
coder_workspace_executeLists running processes
Lists background processes started through the tools in a workspace.
Try: “What background processes are running?”
Read ·
coder_workspace_process_listReads a process's output
Reads the output of a background process started in a workspace.
Try: “Show the output of the build I started.”
Read ·
coder_workspace_process_outputSends a signal to a process
Sends a signal to a process in a workspace, for example to stop it.
Try: “Stop the dev server process.”
Runs code ·
coder_workspace_process_signalGets a URL for a workspace port
Returns URLs that forward to a port in a workspace.
Try: “Give me a link to port 3000 in my workspace.”
Network ·
coder_workspace_port_forwardLists a workspace's apps
Lists the URLs of Coder apps running in a workspace for one agent.
Try: “What apps are running in my workspace?”
Read ·
coder_workspace_list_appsStarts a Coder Agents chat
Starts a Coder Agents chat, a server-side AI coding agent that works on its own from a prompt.
Try: “Start an agent to fix the failing test in my repo.”
Runs code ·
coder_create_chatChecks a Coder Agents chat
Returns a chat's status, last error, last turn summary, workspace and attached files.
Try: “What is the status of that agent chat?”
Read ·
coder_get_chatWaits for a chat to finish
Blocks until a chat stops generating, or until the wait times out.
Try: “Wait for the agent chat to finish.”
Read ·
coder_await_chatLists Coder Agents chats
Lists chats, optionally filtered by labels or a search query.
Try: “List my recent agent chats.”
Read ·
coder_list_chatsReads a chat transcript
Returns the messages of a chat in order.
Try: “Show me what the agent did in that chat.”
Read ·
coder_get_chat_messagesSends a message to a chat
Sends a message to an existing chat.
Try: “Tell the agent to also update the docs.”
Write ·
coder_send_chat_messageInterrupts a running chat
Stops a running chat. Progress so far is kept.
Try: “Stop the running agent chat.”
Write ·
coder_interrupt_chatArchives a chat
Hides a chat from default lists. It can be unarchived in the web UI.
Try: “Archive the finished agent chat.”
Write ·
coder_archive_chatGets a download link for a chat file
Creates a short-lived download URL for a file attached to a chat.
Try: “Give me a link to the file the agent produced.”
Network ·
coder_download_chat_fileLists models for agent chats
Lists the enabled models that Coder Agents chats can use.
Try: “Which models can the agent chats use?”
Read ·
coder_list_chat_model_configsSearches templates and workspaces
A search tool for ChatGPT-style clients that searches templates, workspaces and files in workspaces.
Try: “Search Coder for my Python workspace.”
Read ·
searchFetches a template or workspace
A fetch tool for ChatGPT-style clients that returns a template or a workspace.
Try: “Fetch the Python template.”
Read ·
fetch
From the official docs
Permissions
high risk · 4 things to watch
High risk
The assistant can create, stop and delete workspaces, delete templates, and run commands inside workspaces as you. Use the local server's allowed tools flag to expose only what you need.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
It can run commands inside your workspaces
One tool runs shell commands, and others write files and signal processes in a workspace. Limit the tools with the local --allowed-tools flag if you only need reading. github.com
It can delete workspaces and templates
A build can delete a workspace, and one tool deletes a template. The tool description calls template deletion irreversible. github.com
It acts with all your Coder permissions
The server uses your signed-in account, so it can do what you can do. Use a limited account or token if you can. github.com
A session token in a config file is a secret
The manual remote setup puts a token in the client config. Keep that file private and delete the token when done. github.com
Security advisories
No published security advisories for the MCP server as of Nov 1, 2026.
42 other advisories are about the wider coder project, not this MCP server. See them on GitHub
Technical details
| Turning on read-only | No read-only mode. The local server takes an --allowed-tools flag that lists the only tools it will expose, which you can use to leave out write and delete tools. |
|---|---|
| Talks to | Your Coder deployment |
| Sign-in and keys | The local server uses your existing coder login. The remote server uses OAuth2 sign-in, or a session token you create under Settings > Tokens and send in a header. |
| Scopes |
|
Questions
Do I need my own Coder deployment?
Yes. The MCP server talks to a Coder deployment, either through the local Coder command line tool or through your deployment's own address.
What is the Coder MCP server URL?
It is your deployment's address plus /api/experimental/mcp/http, for example https://coder.example.com/api/experimental/mcp/http. An admin must first enable the OAuth2 provider and the mcp-server-http experiment.
Do I need an API key?
No for the local server, which uses your coder login. The remote server signs in with OAuth2, or with a session token from Settings > Tokens if your app cannot do OAuth2.
Can I limit which tools it exposes?
Yes for the local server. Pass a comma-separated list to its --allowed-tools flag and only those tools are offered.
Can it delete things?
Yes. It can delete workspaces and templates and run commands inside workspaces.
Is it a stable feature?
Not yet. The command is under the exp group and the remote address is under experimental, so details may change between releases.
Which tools do I get, and is the list complete?
It depends on your Coder version. This page follows the main branch, which has 39 tools. Release 2.38.5 has 38 and swaps the workspace execute and process tools for coder_workspace_bash, coder_workspace_edit_file and coder_report_task. Coder says tools can change between releases, so check the toolsdk source for yours.
Information
updated Nov 2, 2026
- Publisher
- Official
- Transport
- stdio, Streamable HTTP
- Auth
- OAuth
- Version
- 2.38.5
- License
- AGPL-3.0
- Last commit
- Oct 31, 2026
- Open issues
- 741
- Listed in
- Official MCP registry
Sources
Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.
Show all 3Hide
- github.com · github.com
- github.com · github.com
- github.com · github.com