Keycloak icon

CONNECT APP

Build with Keycloak

Open Source Identity and Access Management.

Infrastructure & Cloud

  • OAuth

MCP

Give your agent Keycloak tools

Every Keycloak action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's Keycloak account for each tool call — you store no tokens.

// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": "{project_id}",
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "keycloak",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create User:
const result = await mcp.callTool({
  name: "keycloak-create-user",
  arguments: {
    realm: "Realm",
    username: "Username",
  },
})

API PROXY

Call the Keycloak API directly

For an endpoint with no pre-built tool, the Connect proxy forwards your request to the Keycloak API with the connected user's credentials attached. You store no tokens and write no refresh logic.

const resp = await pd.proxy.get({
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  accountId: "apn_xxxxxxx",
  url: "https://api.example.com/v1/me",
})

// Any allowed Keycloak endpoint works here. Pipedream attaches the
// connected account's credentials to the outgoing request.

SDK

Run Keycloak actions from your backend

Connect a user's Keycloak account once, then run Create User on their behalf from your own code — TypeScript, Python, or plain HTTP.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "keycloak-create-user",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    keycloak: { authProvisionId: "apn_xxxxxxx" },
    realm: "Realm",
    username: "Username",
  },
})

EVENTS

Keycloak triggers

Event sources your backend can deploy for users and receive through a webhook.

MULTI-APP

Use Keycloak with other popular apps

Most products don't stop at one integration. Pair Keycloak with the other apps your users rely on, and ship use cases that span both.

n8n.io icon n8n.io The workflow automation platform that doesn't box you in, that you never outgrow. Telegram icon Telegram Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service. Amazon SES icon Amazon SES Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation Stripe icon Stripe Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes. Mailjet icon Mailjet Mailjet is an easy-to-use all-in-one e-mail platform. With our transactional and marketing e-mail solution, it’s never been easier to get your emails into the inbox! Microsoft Power BI icon Microsoft Power BI Visualize any data and integrate the visuals into the apps you use every day with Power BI, a unified platform for self-service and business intelligence. Salesforce icon Salesforce Cloud-based customer relationship management (CRM) platform that helps businesses manage sales, marketing, customer support, and other business activities, ultimately aiming to improve customer relationships and streamline operations. Odoo icon Odoo Integrated enterprise application platform for ERP and CRM. Frappe icon Frappe Excellence driven software products + services Google Analytics icon Google Analytics Google Analytics enables you to measure and report on user activity on websites, web and mobile apps, and internet-connected devices. Have I Been Pwned icon Have I Been Pwned Check if you have an email address or password that has been compromised in a data breach. Splunk icon Splunk Get visibility and insights across your whole organization, powering actions that improve security, reliability and innovation velocity.

REFERENCE

App details

Reference metadata for the Keycloak connector in the Pipedream registry.

App slug
keycloak
Authentication
OAuth
Categories
Infrastructure & Cloud
Actions
5
Triggers
1
API proxy
Available