Add new MCP servers from JSON configuration
POST/v0/servers
Creates one or more MCP server configurations from a structured JSON input. This endpoint accepts configurations in a format compatible with .mcpr config files, making it easy to import existing server definitions or programmatically create new ones. Each server configuration must specify the command and arguments needed to start the server, and can optionally include environment variables for server customization. The endpoint validates each server configuration, attempts to register it in the system, and returns detailed results about the success or failure of each server import operation.
Request
Responses
- 201
- 400
- 500
At least one server created successfully. The response details the outcome for each attempted server addition.
Invalid server configuration format, or all provided server configurations resulted in errors during processing or addition.
Internal server error during the server addition process.