Superglue MCP server

Drop-in proxy between applications and REST/GraphQL/SQL/file endpoints that automatically handles schema drift detection, data transformation, and pipeline healing using LLM-assisted mapping to create cached JSONata transforms that run without latency and regenerate when upstream schemas change.
Back to servers
Setup instructions
Provider
Superglue AI
Release date
Jan 10, 2025
Stats
1.9K stars

Superglue is an API orchestration tool that allows you to integrate and control multiple APIs using natural language instructions. It acts as a proxy that translates natural language commands into API calls, handles schema mapping, detects drift, and maintains workflow reliability—all while enabling agents to build deterministic workflows across various applications, databases, and APIs.

Getting Started

Cloud-Hosted Option

The simplest way to use Superglue is through the cloud-hosted version:

  1. Sign up at superglue.ai
  2. Get your API key from the dashboard

Installing the Client

Install the Superglue JavaScript/TypeScript client:

npm install @superglue/client

Basic Usage

Creating Your First Workflow

Here's how to create a simple workflow that fetches data from multiple endpoints and combines them:

import { SuperglueClient } from "@superglue/client";

const superglue = new SuperglueClient({
  apiKey: "YOUR_API_KEY_HERE"
});

const workflowResult = await superglue.executeWorkflow({
  workflow: {
    id: "myTodoUserWorkflow",
    steps: [
      {
        id: "fetchTodos",
        apiConfig: {
          id: "jsonplaceholderTodos",
          urlHost: "https://jsonplaceholder.typicode.com",
          urlPath: "/todos",
          method: "GET",
          instruction: "Fetch a list of todos. We only need the first one for this example.",
        },
      },
      {
        id: "fetchUser",
        apiConfig: {
          id: "jsonplaceholderUsers",
          urlHost: "https://jsonplaceholder.typicode.com",
          urlPath: "/users/<<$.fetchTodos[0].userId>>",
          method: "GET",
          instruction: "Fetch user details by user ID for the first todo."
        },
      },
    ],
    finalTransform: "$",
    responseSchema: {
      type: "object",
      description: "first todo",
      properties: {
        todoTitle: { type: "string" },
        userName: { type: "string" }
      }
    }
  }
});

console.log(JSON.stringify(workflowResult, null, 2));

Key Features

API Proxying

Superglue acts as a lightweight proxy for various endpoints:

  • REST APIs
  • GraphQL APIs
  • SQL databases
  • Postgres databases
  • File endpoints

Smart Data Mapping

  • Uses LLM assistance during configuration
  • Runs cached JavaScript transforms at runtime (no LLM latency in production)
  • Self-heals when schemas change

Authentication Support

Superglue supports various authentication methods:

// Example with API key authentication
const workflowResult = await superglue.executeWorkflow({
  workflow: { /* workflow definition */ },
  credentials: { 
    my_api_key: "api_key_value" 
  }
});

Handling Pagination

Superglue automatically handles different pagination styles:

// Pagination is handled automatically when configured in the API definition
const apiConfig = {
  // ... other config
  pagination: {
    type: "offset",
    limitParam: "limit",
    offsetParam: "offset",
    limitValue: 100
  }
}

Common Use Cases

Superglue can be used for:

  • Voice assistants that map intent to tool usage
  • Extending GPT with more data sources
  • Adding more actions to AI assistants beyond search
  • Building connectors faster without maintenance overhead
  • Creating simple interfaces for legacy API pipelines
  • Migrating CMS or cloud systems
  • Transforming SQL queries into REST API calls

Additional Resources

For more detailed documentation and examples, visit:

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 "superglue" '{"command":"npx","args":["-y","@superglue/client"]}'

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": {
        "superglue": {
            "command": "npx",
            "args": [
                "-y",
                "@superglue/client"
            ]
        }
    }
}

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": {
        "superglue": {
            "command": "npx",
            "args": [
                "-y",
                "@superglue/client"
            ]
        }
    }
}

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