Skip to main content
Glama

add_mcp_server_config

Add or update configuration for an MCP server in your AI client application to enable its tools and capabilities.

Instructions

Enables capabilities (e.g., tools, features) from a specific MCP server/tool. Add or update its configuration in the client application (e.g., Cursor, Claude Desktop, Windsurf, Claude Code, Codex) using server_id obtained from search_mcp_servers results. 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_idYesA unique MCPFinder ID of the MCP server received from search_mcp_servers.
mcp_definitionNoThe MCP server definition object. Optional.
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