Magic MCP Server
Before you can connect to an MCP server, you need to create a magic MCP server.
Magic MCP Server object
Attributes
object
Stringid
StringThe unique identifier of the magic MCP server
status
EnumThe status of the magic MCP server
endpoints
ObjectList of endpoints for accessing the magic MCP server
server_deployments
ObjectList of server deployments associated with the magic MCP server
name
StringThe name of the magic MCP server
description
StringNullableA description of the magic MCP server, if available
oauth_configuration
Objectmetadata
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.server","status": "active","endpoints": [{"urls": {}},{"urls": {}}],"server_deployments": [{"object": "server.server_deployment#preview","metadata": {},"server": {"object": "server#preview","type": "public"}},{"object": "server.server_deployment#preview","metadata": {},"server": {"object": "server#preview","type": "public"}}],"oauth_configuration": {"status": "disabled"},"metadata": {}}
List magic MCP server
List all magic MCP server
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalstatus
UnionOptionalserver_id
UnionOptionalserver_variant_id
UnionOptionalserver_implementation_id
UnionOptionalsession_id
UnionOptionalmagic_mcp_group_id
UnionOptionalsearch
StringOptionalcurl -X GET "https://api.metorial.com/magic-mcp-servers" \-H "Authorization: Bearer metorial_sk_..."
Get magic MCP server
Get the information of a specific magic MCP server
URL Parameters
magic_mcp_server_id
StringThe unique identifier for the magic_mcp_server
curl -X GET "https://api.metorial.com/magic-mcp-servers/mag_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Create magic MCP server
Create a new magic MCP server
Request Body
name
StringOptionaldescription
StringOptionalmetadata
ObjectOptionalA key-value map
oauth_config
ObjectOptionalaccess
ObjectOptionalserver_deployment_template_id
StringOptionaldefault_oauth_session_id
StringOptionalThe ID of the default OAuth session to use for server deployments created by this magic MCP server
curl -X POST "https://api.metorial.com/magic-mcp-servers" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"oauth_config": {"client_id": "example_client_id","client_secret": "example_client_secret"},"access": {"ip_allowlist": {"ip_whitelist": ["example_item"],"ip_blacklist": ["example_item"]}},"server_deployment_template_id": "example_server_deployment_template_id","default_oauth_session_id": "example_default_oauth_session_id","config": {},"server_implementation": {"name": "example_name","description": "example_description","metadata": {},"get_launch_params": "example_get_launch_params"}}'
Delete magic MCP server
Delete a specific magic MCP server
URL Parameters
magic_mcp_server_id
StringThe unique identifier for the magic_mcp_server
curl -X DELETE "https://api.metorial.com/magic-mcp-servers/mag_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."
Update magic MCP server
Update the information of a specific magic MCP server
URL Parameters
magic_mcp_server_id
StringThe unique identifier for the magic_mcp_server
Request Body
name
StringOptionalThe name of the magic MCP server
description
StringOptionalThe description of the magic MCP server
metadata
ObjectOptionalThe metadata of the magic MCP server
aliases
Array of StringsOptionaldefault_oauth_session_id
StringOptionalThe ID of the default OAuth session to use for server deployments created by this magic MCP server
curl -X PATCH "https://api.metorial.com/magic-mcp-servers/mag_Rm4Mnheq2bfEPhBhP7SY" \-H "Content-Type: application/json" \-H "Authorization: Bearer metorial_sk_..." \-d '{"name": "example_name","description": "example_description","metadata": {},"aliases": ["example_item"],"default_oauth_session_id": "example_default_oauth_session_id"}'