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.
The simplest way to use Superglue is through the cloud-hosted version:
Install the Superglue JavaScript/TypeScript client:
npm install @superglue/client
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));
Superglue acts as a lightweight proxy for various endpoints:
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"
}
});
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
}
}
Superglue can be used for:
For more detailed documentation and examples, visit:
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.
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.
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"
]
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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