Skip to main content
Glama
danielrosehill

Daniel Rosehill's MCP Installer

uninstall_mcp

Remove MCP servers from client configurations like Claude Code, Cursor, or VS Code to manage your development environment.

Instructions

Remove an MCP from a client configuration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mcp_idYesMCP identifier to remove
clientNoClient to remove fromclaude-code

Implementation Reference

  • Handler case within the CallToolRequestHandler that executes the uninstall_mcp tool logic by invoking removeMcpConfig and returning the result.
    case 'uninstall_mcp': {
      const mcpId = args?.mcp_id as string;
      const client = (args?.client as ClientType) || 'claude-code';
    
      const removed = removeMcpConfig(client, mcpId);
    
      return {
        content: [{
          type: 'text',
          text: JSON.stringify({
            status: removed ? 'success' : 'not_found',
            mcp_id: mcpId,
            client,
            message: removed
              ? `Removed '${mcpId}' from ${client}`
              : `MCP '${mcpId}' was not installed in ${client}`
          }, null, 2)
        }]
      };
    }
  • Tool definition including name, description, and input schema for the uninstall_mcp tool, used for registration and validation.
    {
      name: 'uninstall_mcp',
      description: 'Remove an MCP from a client configuration.',
      inputSchema: {
        type: 'object',
        properties: {
          mcp_id: {
            type: 'string',
            description: 'MCP identifier to remove'
          },
          client: {
            type: 'string',
            enum: ['claude-code', 'cursor', 'vscode'],
            description: 'Client to remove from',
            default: 'claude-code'
          }
        },
        required: ['mcp_id']
      }
    },
  • Core helper function that reads the client settings, removes the specified MCP configuration if present, writes the updated settings, and returns success status.
    export function removeMcpConfig(client: ClientType, mcpId: string): boolean {
      const settings = readClientSettings(client);
    
      if (!settings.mcpServers || !(mcpId in settings.mcpServers)) {
        return false;
      }
    
      delete settings.mcpServers[mcpId];
      writeClientSettings(client, settings);
      return true;
    }

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

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/danielrosehill/My-MCP-Installer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server