Skip to main content
Glama

magg_add_server

Add a new MCP server to MAGG by providing a unique name, source URL, and optional settings like commands, environment variables, and transport configurations. Enables dynamic extension of LLM capabilities.

Instructions

Add a new MCP server.

Input Schema

NameRequiredDescriptionDefault
commandNoFull command to run (e.g., 'python server.py', 'npx @playwright/mcp@latest')
cwdNoWorking directory (for commands)
enableNoWhether to enable the server immediately (default: True)
envNoEnvironment variables
nameYesUnique server name
notesNoSetup notes
prefixNoTool prefix (defaults to conformed server name)
sourceYesURL of the server package/repository
transportNoTransport-specific configuration (optional) Common options for all command-based servers: - `keep_alive` (boolean): Keep the process alive between requests (default: true) Python servers (command="python"): - `python_cmd` (string): Python executable path (default: sys.executable) Node.js servers (command="node"): - `node_cmd` (string): Node executable path (default: "node") NPX servers (command="npx"): - `use_package_lock` (boolean): Use package-lock.json if present (default: true) UVX servers (command="uvx"): - `python_version` (string): Python version to use (e.g., "3.13") - `with_packages` (array): Additional packages to install - `from_package` (string): Install tool from specific package HTTP/SSE servers (uri-based): - `headers` (object): HTTP headers to include - `auth` (string): Authentication method ("oauth" or bearer token) - `sse_read_timeout` (number): Timeout for SSE reads in seconds Examples: - Python: `{"keep_alive": false, "python_cmd": "/usr/bin/python3"}` - UVX: `{"python_version": "3.11", "with_packages": ["requests", "pandas"]}` - HTTP: `{"headers": {"Authorization": "Bearer token123"}, "sse_read_timeout": 30}`
uriNoURI for HTTP servers

Input Schema (JSON Schema)

{ "properties": { "command": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Full command to run (e.g., 'python server.py', 'npx @playwright/mcp@latest')", "title": "Command" }, "cwd": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Working directory (for commands)", "title": "Cwd" }, "enable": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": true, "description": "Whether to enable the server immediately (default: True)", "title": "Enable" }, "env": { "anyOf": [ { "additionalProperties": { "type": "string" }, "type": "object" }, { "type": "null" } ], "default": null, "description": "Environment variables", "title": "Env" }, "name": { "description": "Unique server name", "title": "Name", "type": "string" }, "notes": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Setup notes", "title": "Notes" }, "prefix": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Tool prefix (defaults to conformed server name)", "title": "Prefix" }, "source": { "description": "URL of the server package/repository", "title": "Source", "type": "string" }, "transport": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "description": "Transport-specific configuration (optional)\nCommon options for all command-based servers:\n- `keep_alive` (boolean): Keep the process alive between requests (default: true)\n\nPython servers (command=\"python\"):\n- `python_cmd` (string): Python executable path (default: sys.executable)\n\nNode.js servers (command=\"node\"):\n- `node_cmd` (string): Node executable path (default: \"node\")\n\nNPX servers (command=\"npx\"):\n- `use_package_lock` (boolean): Use package-lock.json if present (default: true)\n\nUVX servers (command=\"uvx\"):\n- `python_version` (string): Python version to use (e.g., \"3.13\")\n- `with_packages` (array): Additional packages to install\n- `from_package` (string): Install tool from specific package\n\nHTTP/SSE servers (uri-based):\n- `headers` (object): HTTP headers to include\n- `auth` (string): Authentication method (\"oauth\" or bearer token)\n- `sse_read_timeout` (number): Timeout for SSE reads in seconds\n\nExamples:\n- Python: `{\"keep_alive\": false, \"python_cmd\": \"/usr/bin/python3\"}`\n- UVX: `{\"python_version\": \"3.11\", \"with_packages\": [\"requests\", \"pandas\"]}`\n- HTTP: `{\"headers\": {\"Authorization\": \"Bearer token123\"}, \"sse_read_timeout\": 30}`\n", "title": "Transport" }, "uri": { "anyOf": [ { "format": "uri", "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "description": "URI for HTTP servers", "title": "Uri" } }, "required": [ "name", "source" ], "type": "object" }

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/sitbon/magg'

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