oMLX integrates with the Model Context Protocol (MCP), enabling models to call tools provided by external MCP servers — filesystem access, web search, code execution, database queries, and more. The MCP API routes expose these tools directly over HTTP, so you can inspect what tools are available and invoke them from any client without going through the model.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jundot/omlx/llms.txt
Use this file to discover all available pages before exploring further.
MCP support requires the server to be started with the
--mcp-config flag pointing to a valid MCP configuration file. If MCP is not configured, the tools and servers endpoints return empty results and the execute endpoint returns HTTP 503.List MCP tools
GET /v1/mcp/tools
Returns all tools currently available from all connected MCP servers. Each tool entry includes its name (scoped as server_name__tool_name), description, the server it belongs to, and its input schema.
Example
Response
Array of tool objects from all connected MCP servers.
Total number of available tools.
Example response
Execute an MCP tool
POST /v1/mcp/execute
Execute a specific MCP tool by name and pass arguments to it. The server routes the call to the appropriate MCP server and returns the result.
Parameters
The full scoped tool name, in the format
server_name__tool_name. This matches the name field from GET /v1/mcp/tools.Arguments to pass to the tool, matching the tool’s JSON Schema
parameters. Defaults to an empty object {} if not provided.Examples
Response
The name of the tool that was executed.
The result returned by the MCP tool. The type and structure depend on the specific tool; most tools return a string or a list of content blocks.
true if the tool execution resulted in an error.Error message if
is_error is true, otherwise null.Example response
Error response (MCP not configured)
503 Service Unavailable.