Skip to main content
Glama

Levels AI

AI models using AI models to build AI pipelines. Powered by MCP.

Setup Instructions

We use uv to manage packages. First, install Python dependencies:

# Install dependencies
$ uv pip install -r requirements.txt

Next, sign up to Muna and generate an access key. Then rename .env.example to .env and insert your access key:

# Muna access key
MUNA_ACCESS_KEY=<paste access key here>
NOTE

We useMuna to create a single binary executable that contains an AI model and all the code it needs to run on any device. It is not required to build this MCP, but makes the process of discovering and invoking AI models so much easier.

Finally, add the MCP server to Cursor:

{
  // Add the `levels-ai` MCP server to Cursor's `mcp.json`
  "mcpServers": {
    "levels-ai": {
      "command": "/absolute/path/to/uv",  // update this path...
      "args": [
        "--directory",
        "/path/to/levels-ai",             // and this path...
        "run",
        "--env-file",
        "/path/to/levels-ai/.env",        // and this path 😅
        "server.py"
      ]
    }
  }
}
TIP

You can get the path to youruv executable by running which uv in Terminal.

Related MCP server: hedra-mcp-server

Learnings

In no particular order:

  1. Claude Desktop sucks compared to Cursor for MCP development. Claude Desktop does not have any facilities working with input or output images. You can't get the path to an input image (Cursor supports this); and you also can't get some representation of the image that is useful for a tool call. Accepting base64 would cause Claude to hallucinate a Base64 string which is always invalid.

  2. GPT5 doesn't seem to ever inspect the input schema of the MCP tool. It creates tool calls with no apparent understanding of what the model expects as an input. Claude Sonnet 4 on the other hand does an excellent job consistently.

  3. For some reason, adding local MCP servers to Claude Desktop causes the app's startup time to balloon (over a minute). And making any modifications to the MCP server requires closing and reopening Claude Desktop. This sucks for iteration time. In Cursor, it's a simple toggle.

Developer Notes

A few things relevant to devs who want to remix this project:

Inspecting the MCP Server

You can use the @modelcontextprotocol/inspector tool to start a local UI to play with the MCP server:

# Start the MCP inspector app
$ npx @modelcontextprotocol/inspector

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers