Skip to main content
Glama

remove_mcp_server_config

Remove configuration for a specific MCP server from AI client applications like Cursor, Claude Desktop, or Windsurf to manage tool access and clean up unused server entries.

Instructions

Removes the configuration for a specific MCP server/tool from the client application (e.g., Cursor, Claude Desktop, Windsurf, Claude Code, Codex). Provide EITHER client_type (see available options) OR config_file_path to specify the target config file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
client_typeNoThe type of client application (currently supported: 'cursor', 'claude', 'windsurf', 'claude-code', 'codex'). Mutually exclusive with config_file_path.
config_file_pathNoAbsolute path or path starting with '~' to the config file. Mutually exclusive with client_type.
server_idYesThe unique MCP server identifier (config key name) of the server configuration entry to remove.
claude_pathNoFull path to claude executable (only used for claude-code client_type when claude command is not in PATH).

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/mcpfinder/server'

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