Removing a server from the client list stops new calls, but it does not always revoke the access the server already holds. A remote server that signed in with OAuth keeps its token until that token is revoked, and a local server keeps the folder path in the config until the entry is deleted. Clean removal has three parts: remove the entry, revoke the tokens, and check the access is actually gone.
What you need
- The server entry in the client config or connector list
- Access to the account where the server signed in, if it used OAuth
- A read-only check you can run to confirm the server is gone
Step 1: Remove the server entry
Delete the server from the client config file or the connector list, then restart the client fully so it re-reads the config. Confirm the server no longer appears in the list.
Step 2: Revoke its tokens and keys
If the server used OAuth, open the account it signed in with and revoke the grant for that server. If it used an API key, revoke the key at the service, since a key in a deleted config file can still be used.
Step 3: Check the access is gone
Ask the client a question that would have used the server and confirm it answers without the server data. If the server still answers, a second entry or a cached token is still active.
Worked example: synthetic removal of a remote server
The table below is a synthetic example. It shows the expected result of removing a server; no server was removed.
| Step | Done | Result |
|---|---|---|
| Entry removed | Yes, client restarted | Server gone from list |
| OAuth grant revoked | Yes, in the vendor account | Token invalid |
| API key revoked | Yes, at the service | Key invalid |
| Test question | Answered without server data | Pass |
Expected result (UNTESTED). the server is gone from the list, its token and key are revoked, and a test question is answered without server data. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Removing the entry alone does not revoke tokens; the server may keep access until the token expires.
- A server installed as a .mcpb bundle or an extension may need removal in the client UI as well as in the config.
- Shared project configs can re-add a server for everyone who clones the repository; remove it there too.
- Keep a note of what was revoked, so a later audit can show when access ended.
