Add your own MCP server
Connect any remote MCP server so its tools become available in chat, Code, Cowork and workflows
Beyond the prebuilt integrations, you can connect your own remote MCP server. Its tools then show up like any other integration, in chat and in the desktop products.
Model Context Protocol is the open standard for exposing tools to an AI assistant. If a service offers an MCP endpoint, this is how you plug it in without anyone writing an integration for it first.
You need the permissions Use MCP servers and Add MCP servers. If you do not see Create MCP server under Integrations in the browser, your role does not include them. Ask an administrator.
Adding one
Open Integrations: in the browser under Settings, in the desktop app with
Cmd/Ctrl+Shift+E.
In the browser, click Create MCP server. In the desktop app, click Add and then Remote MCP server.
The dialog Add MCP server lists ready-made servers. The desktop app shows the same list as a page, with Search servers… and, for your own server, Custom server. Find one with Search for an MCP server… or narrow the list with Filter. If your server is not in the list, choose Add a custom server at the bottom. Every entry is marked External MCP server. If one of the ready-made integrations covers the same provider and is available to you, the entry says so and links to it.
For a custom server, enter a name and the Server URL, and optionally a Description (optional). The name is what you and your colleagues see in the list, so name it after the service rather than after the protocol. Some ready-made servers run separately for each customer and ask for your Instance name (or another part of your address) right under the name; the dialog shows the resulting address before you save.
If your organisation is in professional-secrecy mode, a §203 StGB notice appears before the server is connected, and you confirm it with a tick. This also applies to local MCP servers in the desktop app.
Official or community
Every ready-made server carries one of two labels:
- Official: the provider runs the server itself, on its own domain, and names it in its own documentation. When you pick it, you see who runs it.
- Community: the server is not run by the provider but by a third party, for example a bridge to a provider's API or a private project. Before connecting, check whom you are giving access to your data.
Within a category, official servers come first. Once you pick a server, the dialog shows, where known, links to the operator's MCP documentation, Setup guide, Terms and Privacy. If the service needs an account with the provider, or the provider charges for it, a note with a link to sign up or to the pricing appears before you connect.
The servers in the list are checked regularly. One that did not answer as expected at the last check is marked Unreachable at last check. You can still pick it, but connecting may fail.
A server marked Coming soon is shown greyed out and cannot be picked yet: its provider does not let DeutschlandGPT connect to it so far. The chat knows this too and tells you instead of offering to connect it.
Authentication
| Method | When to use it |
|---|---|
| OAuth (automatic, recommended for known servers) | The server supports OAuth. Each user signs in themselves, with their own permissions |
| API key (custom header or query param) | The server expects a key in a header or a query parameter |
| Bearer token (Authorization header) | The server expects a fixed token in the Authorization header |
| None: public or local server | A public server that needs no credentials |
OAuth is the default and usually the right choice. It only needs the name and the URL: DeutschlandGPT reads the OAuth configuration from the MCP server itself when you save, including servers whose sign-in lives under a path of the address. Enter the authorization-server address by hand only if the server does not publish it. Each person who uses the integration signs in as themselves, so nobody shares a credential and access follows whatever the service already grants them.
For API key, say where the key goes: as a header or as a query parameter, under which name, and with a prefix if the service wants one, for example Bearer .
Everything else is in the collapsed Advanced settings: the transport, an explicit authorization-server address, OAuth scopes, your own client ID and secret, and Additional HTTP headers. Additional headers are sent with every request, for example a profile header the vendor requires. Use them for non-secret values only, because everyone who can see the server can see them. Keys and tokens belong in the authentication. If a value in the advanced section fails validation, the section opens itself instead of the save looking like it did nothing.
Servers that sign in through Microsoft Entra ID
Some servers, such as the Azure DevOps remote MCP server, run their sign-in through Microsoft Entra ID. Entra does not support automatic client registration, so you need an app registration of your own in your tenant:
In Entra, create an app registration with the platform Web and that URL as its redirect URI, and create a client secret under Certificates & secrets.
Under API permissions, add the delegated permissions the service requires and grant admin
consent. For Azure DevOps, choose Add a permission → APIs my organization uses, search
for Azure DevOps MCP (application ID 2a72489c-aab2-4b65-b93a-a91edccf33b8), and select the
delegated permissions for what you want to use, for example the read permissions for work items
and repositories. Use this application, not the older Azure DevOps → user_impersonation
permission, which is meant for the Azure DevOps REST API. If Azure DevOps MCP does not
appear in the list, the enterprise application is not yet provisioned in your tenant, see
Microsoft's guide to the remote Azure DevOps MCP server.
In the Advanced settings, enter the app's OAuth client ID and OAuth client secret.
For Azure DevOps, enter https://mcp.dev.azure.com/.default under OAuth scopes. Then save.
After that, each person signs in with their own Microsoft account when they connect. With None as the authentication, a server like this cannot be connected.
If you change the permissions of the app later, disconnect the integration and connect it again: an existing connection keeps the permissions it was granted when you signed in.
HubSpot
HubSpot runs its own MCP server. It offers no automatic client registration either, but you do not need an app of your own: DeutschlandGPT connects with its own HubSpot connector.
Under Create MCP server, choose HubSpot from the list (marked Official), or add your
own server with the server URL https://mcp.hubspot.com. Leave the client ID and secret empty.
Click Connect, sign in to HubSpot and choose the HubSpot account (portal) to connect, then confirm the access.
Each connection is named after the HubSpot user's email address and the portal, so two portals are easy to tell apart. Each person connects with their own HubSpot user, so the assistant sees and changes only what that user may see and change in HubSpot. Before a tool changes something in HubSpot, such as creating a contact or updating a deal, you are asked to confirm it.
Transport
By default the transport HTTP (recommended) is used, the modern streamable HTTP. Older servers that only speak HTTP with server-sent events work too: choose Server-Sent Events in the advanced settings. If a connection attempt fails with a transport error, this is the first thing to try.
A server on your own network
The connection to an MCP server is made by our infrastructure, not by the user's device. Two things follow from that. The endpoint has to be reachable over public HTTPS, otherwise the URL is rejected when you save it. And it makes no difference which network the devices are on, or whether they move between networks: laptops that roam between the office, a VPN and mobile data need no configuration for this.
For a server that currently only runs internally, two approaches work well:
- A reverse proxy or API gateway you already operate. Publish only the MCP path under a public DNS name, terminate TLS there with a publicly trusted certificate, and put authentication in front of it. The internal server itself stays untouched.
- An outbound tunnel, such as Cloudflare Tunnel or a comparable service. The connection is established from the inside out, so you need no inbound firewall rule, no static public IP and no certificate of your own. This is usually the faster route when several firewalls are involved.
Either way: publish the MCP endpoint only, not the whole service, enforce authentication at the edge, and give the MCP server internally only the rights its tools actually need. OAuth is the best choice here too, because each person then acts with their own permissions instead of a shared token.
There is no tunnel through the desktop app and no relay through the Windows client, and an IP-level allowlist is not a substitute for authentication.
Separately from this, the desktop app can run MCP servers locally on your computer and let Code and Cowork use their tools, if your organization allows it. Such a server is a program on your device. You set it up in the desktop app under Integrations, via Add and Local MCP server. It then appears in the On this device area, and only Code and Cowork can use it. See Local MCP servers.
Sharing it with your team
There are two independent things you can share, and mixing them up is the most common source of confusion:
| What you share | What the recipient gets | Where |
|---|---|---|
| The server (definition) | It appears in their integration list, and they connect it with their own credentials | The menu on the integration in the overview |
| The credentials (API key) | They use your key without ever seeing it | The menu on the integration's detail page |
A common combination: you add the server and share the definition so your team can see it, and you also share the key so everyone uses the organization's credentials without being able to read them. Both shares are managed separately and can be revoked at any time. Sharing needs the permission Share your own MCP servers. A shared server can also be used in a custom GPT: whoever has connected it, or may use your credentials, can run its tools there as actions.
People who may use the server but not edit it see only the host of its address, for example https://mcp.example.com: the path, parameters and additional HTTP headers are kept for those who may edit it, because they often contain a key. If you move the server or its authorization server to another host, or switch the authentication method to or from OAuth, everybody's connection is disconnected and each person connects again. The form warns you before you save.
Using it
Once connected, the server's tools are available in chat, in Code and in Cowork, through the same server-side dispatcher as every other integration. In a workflow, the server is listed under Integrations as an integration of its own, with its tools as actions (MCP and WebDAV servers), so you call a tool as a fixed step, or give it to the AI Agent as a tool, which then decides itself when to use it. The workflow assistant knows your servers and can set up either for you.
Whether a tool asks you first depends on who runs the server:
- A vendor's own server. Some of the servers DeutschlandGPT offers ready to connect are run by the vendor itself, at an address the vendor's own documentation names. Their tools that the server declares as read-only count as reading and run without asking, unless you set reading to Ask every time under Permissions. Every other tool counts as changing something. A tool that declares nothing counts as one that may also delete, and asks every time, even if you set writing to Always allow, until you allow that tool itself.
- Every other server (an address you entered yourself, a server run by a third party, a tunnel): what its tools declare cannot be verified, so every tool counts as changing something and follows your setting for writing, which is Ask every time unless you changed it. On the server's detail page, Run read-only tools without asking lets the tools the server declares as read-only run without an approval request. Only switch this on for servers you trust. Always allow for one tool of such a server applies to the tool as the server described it when you allowed it: if the server later changes the tool's description, parameters or what it declares, you are asked again, and the request says that the tool changed. Always allow for the whole server covers the tools it listed when you allowed it, as they were described then: a tool the server adds or changes later is asked about.
Your organization can also set a rule per tool: Block refuses the tool everywhere, Ask asks in the chat every time, even if you chose Always allow, and Allow leaves it to your own settings. Rules exist for the vendors' own servers and for servers your organization shares, not for a server only you have added.
In the desktop products, Approve connections automatically lets the actions that would ask run without asking if you would rather not confirm each one. A tool the organization set to Ask or Block is not affected.
In a workflow nobody is asked: selecting a tool in the AI Agent or as a node is the approval. A tool that the person who owns the connection set to Never allow under Permissions, or that the organization set to Ask or Block, stops the workflow run with an error. The same applies when they lack the Use MCP servers permission or the organization switched the server off for them. A scheduled task follows the same rules.
An MCP server is code someone else runs, and its tools can act on your behalf. Only add servers you trust, and prefer OAuth so it acts with your own permissions instead of a shared key.
Citations
What a reading tool returns can be cited like a web search: each recognised item of the result (a document, a statute, a record) gets a number, and the answer names it as its source, for example "[3]". When a server answers in prose, such as a publisher's AI with a list of source links, each linked document becomes a source of its own. If DeutschlandGPT recognises no single item in the result, the call itself is the source. A tool that changes something and a failed call are never sources.
The citation names the server and the tool, the location (such as section, paragraph or margin number) when the result contains it, and an excerpt. A click opens the document at the provider when the result contains a link. Otherwise it opens the record: which server was asked what, when, and what it returned for this item.
Every number, amount, section and margin number and date in the cited sentence must occur in the cited item. If one does not, the citation has a dashed outline and names what was not found in the source. Check the sentence against the source then.
What administrators control
Administrators can switch MCP servers on or off for the whole organization under Organization settings → Tools & integrations → Integrations, via the filter Type → MCP servers, and make exceptions for groups or single members.
When it stops working
- A tool disappeared or a new one is missing: the server changed its tool list. You do not need to connect again: when the stored tool list is older than an hour, the chat reloads it in the background and the next message sees the change. To see it right away, open the integration's detail page to reload it (not while Custom servers is off, see below).
- Every call is refused because “Custom servers” is off: your organization switched off Custom servers under Notifications → Custom integrations & code. For an organization under § 203 StGB it is off after activation. DeutschlandGPT then makes no contact at all with custom MCP or WebDAV servers: every tool is refused before it reaches the server, the tool list is neither reloaded nor refreshed (the chat shows the last stored list as blocked), and connecting, signing in with OAuth and saving a server that uses OAuth are refused. When the switch is turned on again later, an OAuth connection may need to be connected again. No rule shows up under Integrations for it; only an administrator can switch it on under Notifications.
- Authentication errors: for OAuth, delete the connection and connect again to run a fresh sign-in. For an API key, check whether the key was rotated.
- The server cannot be reached: it has to be reachable over public HTTPS. A server on a private network is unreachable from our infrastructure, and is deliberately blocked as well. The same applies to a public URL that redirects to an address in a private network: the redirect is not followed.
- The URL is rejected when you save: the hostname has to resolve in public DNS. A name that only exists inside a VPN or an overlay network, such as a Tailscale
*.ts.netname or an internal DNS zone, resolves on your own devices but not from the internet. It is never about the domain's ending; no top-level domain is blocked. The error message says which of the two applies.