Local MCP servers
Run MCP servers on your own computer and let Code and Cowork use their tools
A local MCP server is a program that runs on your computer and offers tools to the assistant, for example access to a folder, a Git repository or a local database. Code and Cowork can then call those tools.
You manage local servers under Settings, Integrations. In Code and Cowork, /mcp opens the integrations directly, filtered to MCP servers.
A local server runs with your user rights on this device, and what its tools return is sent to the selected AI model. Only add servers you trust. The app asks you to confirm this before it adds one.
Local or remote
The list under Integrations has two areas:
- Connected to your account: the prebuilt integrations, your own remote MCP servers and WebDAV. A remote MCP server runs on the internet, and our server connects to it. That is why it is available in every product, in the browser as well as in Chat, Code and Cowork.
- On this device: your local MCP servers with the Local badge, their state and the hint Only in Code and Cowork. Below them, under Config files, are the configuration files the app found and their servers, including those that are Not approved yet.
The filters All, MCP servers and Local narrow the list, and the search finds entries in both areas.
Adding a server
Under Integrations, click Add. The app first asks what you want to add: a Remote MCP server (an address), a Local MCP server (a command) or WebDAV / Nextcloud. Above these three cards is Paste configuration. If you have a configuration with several servers, use it: the app accepts JSON with mcpServers (or servers as in VS Code), a single server entry or a command line, and sorts each entry on its own. Entries with a command become local servers. An entry with a URL opens the form with its address, and there you choose whether the app connects it on this device or as a remote MCP server through the DeutschlandGPT server.
For a local server there are four ways, and none of them starts anything until you have saved:
- Popular servers: one click adds a ready-made entry, for example File system, Git, SQLite, PostgreSQL, Web fetch, Memory, Browser (Playwright) or Obsidian. You only choose the folder, file or connection URL it needs. If the server needs Node.js or uv (Python) and the app cannot find it, it shows the install command.
- Found in other apps: servers already set up in Claude Desktop, Claude Code, Cursor, VS Code or Windsurf are offered with Take over. Entries with a URL in those files open the form with their address, with the same choice between this device and the DeutschlandGPT server.
- Paste: paste the JSON from another app (with
mcpServers) or a command from a README, such asnpx -y @modelcontextprotocol/server-filesystem ~/Documents. An entry with a URL opens the form with its address. If you choose the DeutschlandGPT server there, you continue in the form for a remote MCP server. - Add manually: under Type choose Start a program or Address (HTTP) (see Servers with an address). For a program, enter a Name, the Command, its Arguments (one per line), Environment variables, an optional Working directory and a Time limit per call (seconds). Test checks whether the server answers and how many tools it offers.
The menu More options (⋯) next to Paste and Add manually has two more entries: Open config file shows the file in which the app keeps your local servers, and Export copies them as JSON with mcpServers, without the values of the variables.
The name becomes the prefix of the server's tools: lowercase letters, digits and hyphens, at most 24 characters. The command is started directly, without a shell.
Servers with an address
If an MCP server is already running, on this device, in the local network or in the intranet, the app connects to its address instead of starting a program. In the form, choose Address (HTTP) under Type and enter the Address, for example http://localhost:3000/mcp. The app speaks Streamable HTTP. Set up servers that only offer the older SSE method through the DeutschlandGPT server.
- Headers: if the server needs an access token, add it as a header, for example
AuthorizationwithBearer …. The values are kept in your operating system's keychain, like environment variables. - Encryption: without encryption (
http://) the app only connects addresses on this device and in private networks. Every other address needshttps://. - Professional secrecy: if your organization is bound by professional secrecy under section 203 of the German Criminal Code, the app only connects addresses on this device and in private networks, also with
https://. As long as the app does not know this yet for your organization, the same rule applies. - Proxy: the app uses your system's proxy, except for addresses on this device. It does not follow redirects.
- Sign-in: sign-in with OAuth is not supported yet for servers on this device. If the server asks for a sign-in, the app shows Sign-in required. Add an access token as a header then, or set the server up through the DeutschlandGPT server.
Under Connect you choose whether the app connects the server On this device or Through the DeutschlandGPT server. The second way turns it into a remote MCP server of your account. It can sign in with OAuth too, but only reaches servers on the internet.
Managing servers
Each local server shows its state in the list: Running, Stopped, Starting…, Error or, for a server with an address, Sign-in required. Clicking it opens its details. There you switch the server on or off, start or stop it, and use the switch next to each tool to offer only the tools you need. read-only marks tools that declare they change nothing. Log shows what the server printed, Edit changes its settings and Remove deletes it.
At most 40 tools are offered to the assistant at a time, across all servers. The app warns when you have switched on more.
When many tools are switched on, the assistant first sees only their names and loads a tool when it needs it. A server can exempt individual tools: if it sets _meta to { "alwaysLoad": true } in a tool's entry, that tool is always fully available to the assistant.
Servers from a configuration file
You can also list servers in a file. .deutschlandgpt/mcp.json or .mcp.json in a project folder applies to that project, ~/.deutschlandgpt/mcp.json to all projects. A server from such a file only starts once you have reviewed and approved its command. If the entry changes, the app asks again. An entry with url (and type http, or no type) is a server with an address, optionally with headers. It also runs only after your approval, and the app reads ${VAR} in the address and headers from your environment.
If your organization works under professional secrecy (§203), this approval first shows a notice about § 203 StGB. The server only starts once you confirm the notice with the checkbox.
Where the settings are kept
Local servers and their settings stay on this device and are never synced to our server. Values of environment variables and headers are stored in your operating system's keychain and are not shown again after saving. Removing a server also deletes its stored values.
Approvals
A call to a local tool goes through the same approvals as everything else in Code and Cowork:
- In Plan mode only tools marked read-only may run.
- In Auto mode tools run without asking. A sub-agent still asks.
- Otherwise the app asks before a tool runs. If you allow it permanently, that permission applies to this tool with exactly this server configuration. If you change the command, its arguments or the address, the app asks again.
Calls of tools that may change something are recorded in your organization's audit log with server name, tool name and result. Arguments, values and outputs are never recorded.
For administrators
The switch Allow local MCP servers under Tool policies decides whether members may add local MCP servers in Code and Cowork. Every call runs with the member's rights on their device, and the results go to the selected AI model. When you switch it off, the desktop app stops all local servers at its next sync.
The list of allowed or blocked servers also applies to servers with an address. For them the host counts, subdomains included: example.de also covers mcp.example.de. In an allow list only the host counts for them, a block list also blocks them by name.
When local servers are not available
| Message | Meaning |
|---|---|
| Not available yet. | Local MCP servers are not switched on for your account |
| Turned off by your organization. | An administrator has turned off Allow local MCP servers for the organization. Running servers are stopped |