Glif MCP server

Enables Claude to run visual AI workflows from glif.app, providing tools to execute, manage, and save Glif workflows directly within conversations.
Back to servers
Setup instructions
Provider
Spellcasters, Inc
Release date
Mar 12, 2025
Language
TypeScript
Stats
24 stars

The Glif MCP Server provides a way to run AI workflows from glif.app using the Model Context Protocol (MCP). It allows you to execute glifs, manage bots, and access glif metadata through an MCP server compatible with Claude Desktop and other MCP clients.

Installation Options

Using npx (Recommended)

  1. Get your API token from glif.app/settings/api-tokens
  2. Add the server to your Claude Desktop config file (on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
  "mcpServers": {
    "glif": {
      "command": "npx",
      "args": ["-y", "@glifxyz/glif-mcp-server@latest"],
      "env": {
        "GLIF_API_TOKEN": "your-token-here"
      }
    }
  }
}

Running from Local Checkout

  1. Clone and install the repository:
git clone https://github.com/glifxyz/glif-mcp-server
cd glif-mcp-server
npm install
npm run build
  1. Configure your MCP client to load the server:
{
  "mcpServers": {
    "glif": {
      "command": "node",
      "args": ["/path/to/glif-mcp/build/index.js"],
      "env": {
        "GLIF_API_TOKEN": "your-token-here"
      }
    }
  }
}
  1. Optional: Specify glifs to load automatically:
{
  "mcpServers": {
    "glif": {
      "command": "node",
      "args": ["/path/to/glif-mcp/build/index.js"],
      "env": {
        "GLIF_API_TOKEN": "your-token-here",
        "GLIF_IDS": "cm2v9aiga00008vfqdiximl2m,cm2v98jk6000r11afslqvooil,cm2v9rp66000bat9wr606qq6o",
        "IGNORE_SAVED_GLIFS": true
      }
    }
  }
}

Using Smithery

To automatically install via Smithery:

npx -y @smithery/cli install @glifxyz/glif-mcp-server --client claude

Available Tools

General Glif Tools

  • run_glif: Execute a glif with specified ID and inputs
  • glif_info: Get detailed information about a glif including input fields
  • list_featured_glifs: Get a curated list of featured glifs
  • search_glifs: Search for glifs by name or description

Bot Tools

  • list_bots: Get a list of featured bots and sim templates
  • load_bot: Get detailed information about a specific bot, including its skills
  • save_bot_skills_as_tools: Save all skills from a bot as individual tools

User-specific Tools

  • my_glifs: Get a list of your glifs
  • my_glif_user_info: Get detailed information about your user account

Meta-Tools for Glif Management

  • save_glif_as_tool: Save a glif as a custom tool
  • remove_glif_tool: Remove a saved glif tool
  • remove_all_glif_tools: Remove all saved glif tools
  • list_saved_glif_tools: List all saved glif tools

Creating Custom Tools from Glifs

You can convert specific glifs into standalone tools for easier access. Here's an example workflow:

  1. Find interesting glifs:

    What are some cool new glifs?
    

    (This will trigger a list_featured_glifs tool call)

  2. Save a glif as a custom tool:

    I like the 1970s sci-fi book cover generator, make that into a tool called "scifi_book_image"
    

    (This will trigger a save_glif_as_tool call with appropriate parameters)

  3. Use your new tool directly:

    Make sci-fi book image of a robot uprising
    

Note: Claude Desktop requires a restart to load new tool definitions, while some other clients may reload automatically.

Available Resources

  • glif://{id} - Access glif metadata
  • glifRun://{id} - Get run details
  • glifUser://{id} - Access user profile information

Usage Limits

The server is subject to the same usage limits as regular user accounts. You can purchase additional credits at glif.app/pricing if needed.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "glif" '{"command":"npx","args":["-y","@glifxyz/glif-mcp-server@latest"],"env":{"GLIF_API_TOKEN":"your-token-here"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "glif": {
            "command": "npx",
            "args": [
                "-y",
                "@glifxyz/glif-mcp-server@latest"
            ],
            "env": {
                "GLIF_API_TOKEN": "your-token-here"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "glif": {
            "command": "npx",
            "args": [
                "-y",
                "@glifxyz/glif-mcp-server@latest"
            ],
            "env": {
                "GLIF_API_TOKEN": "your-token-here"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later