Magic MCP Group
Before you can connect to an MCP server, you need to create a magic MCP group.
Magic MCP Group object
Attributes
object
Stringid
StringThe unique identifier of the magic MCP group
status
EnumThe status of the magic MCP server
slug
StringThe slug identifier of the magic MCP group
name
StringThe name of the magic MCP server
description
StringNullableA description of the magic MCP server, if available
metadata
ObjectAdditional metadata related to the magic MCP server
created_at
DateTimestamp when the magic MCP server was created
updated_at
DateTimestamp when the magic MCP server was last updated
{"object": "magic_mcp.group","status": "active","metadata": {}}
List magic MCP group
List all magic MCP group
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalstatus
UnionOptionalsearch
StringOptionalcurl -X GET "https://api.metorial.com/magic-mcp-groups" \-H "Authorization: Bearer metorial_sk_..."
Get magic MCP group
Get the information of a specific magic MCP group
URL Parameters
magic_mcp_group_id
StringThe unique identifier for the magic_mcp_group
curl -X GET "https://api.metorial.com/magic-mcp-groups/mag_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create magic MCP group
Create a new magic MCP group
Request Body
name
StringThe name of the magic MCP group
description
StringOptionalThe description of the magic MCP group
metadata
ObjectOptionalThe metadata of the magic MCP group
curl -X POST "https://api.metorial.com/magic-mcp-groups" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {}}'
Delete magic MCP group
Delete a specific magic MCP group
URL Parameters
magic_mcp_group_id
StringThe unique identifier for the magic_mcp_group
curl -X DELETE "https://api.metorial.com/magic-mcp-groups/mag_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Update magic MCP group
Update the information of a specific magic MCP group
URL Parameters
magic_mcp_group_id
StringThe unique identifier for the magic_mcp_group
Request Body
name
StringOptionalThe name of the magic MCP group
description
StringOptionalThe description of the magic MCP group
metadata
ObjectOptionalThe metadata of the magic MCP group
curl -X PATCH "https://api.metorial.com/magic-mcp-groups/mag_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {}}'
Add servers to magic MCP group
Add magic MCP servers to a specific magic MCP group
URL Parameters
magic_mcp_group_id
StringThe unique identifier for the magic_mcp_group
Request Body
magic_mcp_server_ids
Array of StringsThe IDs of the magic MCP servers to add to the group
curl -X POST "https://api.metorial.com/magic-mcp-groups/mag_Rm4Mnheq2bfEPhBhP7SY/add-servers" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"magic_mcp_server_ids": ["example_item"]}'
Remove servers from magic MCP group
Remove magic MCP servers from a specific magic MCP group
URL Parameters
magic_mcp_group_id
StringThe unique identifier for the magic_mcp_group
Request Body
magic_mcp_server_ids
Array of StringsThe IDs of the magic MCP servers to remove from the group
curl -X POST "https://api.metorial.com/magic-mcp-groups/mag_Rm4Mnheq2bfEPhBhP7SY/remove-servers" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"magic_mcp_server_ids": ["example_item"]}'