Logto MCP Server
This server exposes the Logto Management API to MCP clients so you can administer Logto users, applications, organizations, roles, and API resources.\n\n- Verify M2M credentials with logto_health\n- List, get, create, update, and delete users; search and paginate users\n- List, get, create, update, and delete applications, including token/refresh settings\n- List, get, create, update, and delete organizations\n- List, add, and remove organization members\n- List, get, create, update, and delete roles\n- List roles assigned to a user and assign roles to a user\n- List, get, create, update, and delete API resources\n- List, create, and delete API resource scopes/permissions\n- Assign API resource scopes to roles
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Logto MCP Server list all users"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Logto MCP Server
A Model Context Protocol server that exposes the Logto Management API to MCP clients (Cursor, Claude Desktop, etc.).
Built with:
@modelcontextprotocol/sdk(stdio transport)@logto/apiManagement SDK
Prerequisites
A Logto instance (self-hosted OSS or Cloud)
A Machine-to-machine application in Console → Applications
An M2M role that includes Logto Management API permissions (
all)
See Interact with Management API for details.
Related MCP server: openserverless-mcp
Setup
npm install
npm run buildEnvironment variables
Variable | Required | Description |
| Yes | M2M application ID |
| Yes | M2M application secret |
| OSS | Self-hosted Logto base URL |
| Cloud | Cloud tenant ID (OSS defaults to |
| No | OSS default: |
Copy .env.example as a reference. For MCP clients, pass variables in the env block (below).
Self-hosted / OSS
LOGTO_ENDPOINT=https://your.logto.endpoint
LOGTO_APP_ID=...
LOGTO_APP_SECRET=...
# Optional: LOGTO_TENANT_ID=default
# Optional: LOGTO_API_INDICATOR=https://default.logto.app/apiLogto Cloud
LOGTO_TENANT_ID=your-tenant-id
LOGTO_APP_ID=...
LOGTO_APP_SECRET=...Cursor / Claude Desktop / MetaMCP config
Local build:
{
"mcpServers": {
"logto": {
"command": "node",
"args": ["C:/Users/rascal/projects/logto-mcp/build/index.js"],
"env": {
"LOGTO_ENDPOINT": "https://your.logto.endpoint",
"LOGTO_APP_ID": "your-m2m-app-id",
"LOGTO_APP_SECRET": "your-m2m-app-secret"
}
}
}
}From GitHub repo (no package registry auth):
{
"mcpServers": {
"logto": {
"command": "npx",
"args": ["-y", "github:KDunin/logto-mcp"],
"env": {
"LOGTO_ENDPOINT": "https://your.logto.endpoint",
"LOGTO_APP_ID": "your-m2m-app-id",
"LOGTO_APP_SECRET": "your-m2m-app-secret"
}
}
}
}From GitHub Packages (after a release is published):
# once in ~/.npmrc (needs a PAT with read:packages)
echo "@kdunin:registry=https://npm.pkg.github.com" >> ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=YOUR_GH_PAT" >> ~/.npmrc{
"mcpServers": {
"logto": {
"command": "npx",
"args": ["-y", "@kdunin/logto-mcp"],
"env": {
"LOGTO_ENDPOINT": "https://your.logto.endpoint",
"LOGTO_APP_ID": "your-m2m-app-id",
"LOGTO_APP_SECRET": "your-m2m-app-secret"
}
}
}
}Use an absolute path to build/index.js for local runs. After changing env or rebuilding, restart the MCP client.
Tools
Tool | Description |
| Verify M2M credentials |
| Users |
| Applications ( |
| Organizations |
| Organization members |
| Roles |
| User ↔ role assignment |
| API resources |
| API resource permissions |
| Role ↔ permission assignment |
Development
npm run build # compile TypeScript to build/
npm start # run stdio server (expects MCP client on stdin)
npm run dev # tsc --watchLogging goes to stderr only so stdout stays reserved for MCP JSON-RPC.
Releasing
Releases are automated by .github/workflows/release.yml when you push a version tag.
Bump
versioninpackage.json(must match the tag without thevprefix).Commit, then tag and push:
git tag v1.0.1
git push origin v1.0.1The workflow will:
Build the package
Create a GitHub Release with notes and the
.tgzartifactPublish to GitHub Packages as
@kdunin/logto-mcp(stable tags only; usesGITHUB_TOKEN, no npmjs login)
ENEEDAUTH against registry.npmjs.org means you were targeting the public npm registry. This project publishes to https://npm.pkg.github.com instead.
Prerelease tags like v1.0.1-beta.1 create a GitHub prerelease and skip package publish.
License
MIT
Available Tools
35 toolsadd_organization_membersC
Add users as members of a Logto organization.
Inputs: id (required), userIds (required).
assign_role_scopesB
Add API resource permissions (scopes) to an existing role.
Inputs: id (required), scopeIds (required).
assign_user_rolesB
Assign API resource roles to a user (adds to existing roles).
Inputs: userId (required), roleIds (required).
create_applicationC
Create a Logto application.
Inputs: name (required), type (required), description, isThirdParty, +2 more.
create_organizationC
Create a Logto organization.
Inputs: name (required), customData, description, isMfaRequired.
create_resourceB
Create a Logto API resource. The indicator is the audience (aud) of its access tokens.
Inputs: name (required), indicator (required), accessTokenTtl.
create_resource_scopeC
Create a permission (scope) on a Logto API resource.
Inputs: name (required), resourceId (required), description.
create_roleC
Create a Logto API resource role.
Inputs: name (required), description (required), type, scopeIds, +1 more.
create_userB
Create a Logto user. At least one of username, primaryEmail, or primaryPhone is typically required.
Inputs: name, avatar, password, username, +3 more.
delete_applicationC
Delete a Logto application by ID.
Inputs: id (required).
delete_organizationC
Delete a Logto organization by ID.
Inputs: id (required).
delete_resourceB
Delete a Logto API resource by ID, with its permissions.
Inputs: id (required).
delete_resource_scopeC
Delete a permission (scope) from a Logto API resource.
Inputs: scopeId (required), resourceId (required).
delete_roleC
Delete a Logto role by ID.
Inputs: id (required).
delete_userC
Delete a Logto user by ID.
Inputs: userId (required).
get_applicationB
Get a Logto application by ID.
Inputs: id (required).
get_organizationC
Get a Logto organization by ID.
Inputs: id (required).
get_resourceC
Get a Logto API resource by ID.
Inputs: id (required).
get_roleC
Get a Logto role by ID.
Inputs: id (required).
get_userA
Get a Logto user by ID.
Inputs: userId (required).
list_applicationsB
List Logto applications with optional type filter and pagination.
Inputs: page, types, search, page_size.
list_organization_membersC
List user members of a Logto organization.
Inputs: id (required), page, page_size.
list_organizationsB
List Logto organizations with optional query and pagination.
Inputs: q, page, page_size, showFeatured.
list_resourcesC
List Logto API resources with optional pagination.
Inputs: page, page_size.
list_resource_scopesC
List the permissions (scopes) of a Logto API resource.
Inputs: resourceId (required), page, search, page_size.
list_rolesC
List Logto API resource roles with optional filters and pagination.
Inputs: page, type, search, page_size.
list_user_rolesC
List API resource roles assigned to a user.
Inputs: userId (required), page, page_size.
list_usersB
List Logto users with optional search and pagination. Search uses Logto advanced user search query syntax.
Inputs: page, search, page_size.
logto_healthA
Verify Logto Management API credentials by listing one user page.
Inputs: no named parameters.
remove_organization_memberC
Remove a user from a Logto organization.
Inputs: id (required), userId (required).
update_applicationC
Update a Logto application by ID (partial update). Token settings are merged into the current custom client metadata.
Inputs: id (required), name, idTokenTtl, description, +7 more.
update_organizationC
Update a Logto organization by ID (partial update).
Inputs: id (required), name, customData, description, +1 more.
update_resourceA
Update a Logto API resource by ID (partial update). The indicator cannot be changed.
Inputs: id (required), name, accessTokenTtl.
update_roleC
Update a Logto role by ID (partial update).
Inputs: id (required), name, isDefault, description.
update_userC
Update a Logto user by ID (partial update).
Inputs: userId (required), name, avatar, username, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 35 tools
Most tools are clearly scoped to a distinct resource and action, such as user, organization, role, resource, and application CRUD. The main ambiguity is in the role/scope cluster: list_roles vs. list_user_roles vs. list_resource_scopes, and assign_user_roles vs. assign_role_scopes can require careful reading, though the descriptions do distinguish them.
The set overwhelmingly follows a snake_case verb_noun pattern (list_users, create_role, delete_resource_scope, etc.), which is easy to predict. Minor deviations include logto_health, the inconsistent add vs. assign verbs for membership/role assignment, and singular remove_organization_member amidst plural member tools.
At 35 tools, the surface is large and exceeds the typical heavy range, even for a multi-resource management API. Several operations could likely be consolidated or grouped more tightly, making the set feel sprawling rather than well-scoped.
Core CRUD is covered for users, organizations, roles, resources, and applications, and member management includes add/remove. However, there are notable lifecycle gaps: no unassign_user_roles, no remove_role_scopes/list_role_scopes, and no organization-role assignment management, which leaves common authorization workflows incomplete.
Maintenance
Related MCP Connectors
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Connect MCP clients to 2,000+ AI models without managing provider API keys.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables programmatic control of Cursor's cloud-based AI agents for automated code generation and repository management via standardized MCP tools.6MIT
- AlicenseAqualityDmaintenanceEnables MCP-capable agents to create and invoke OpenServerless endpoints, manage secrets, and configure integrations such as S3, PostgreSQL, Redis, Milvus, and MongoDB.13Apache 2.0

magicsword-mcpofficial
AlicenseAqualityBmaintenanceEnables Claude Desktop, Cursor, and other MCP-aware clients to conversationally manage endpoints, query and triage alerts, inspect events, manage policies and intel feeds, mint enrollment tokens, and preview or commit fleet changes.2683 npmApache 2.0- AlicenseNot gradedqualityAmaintenanceEnables clients such as Claude, Cursor, VS Code, and Windsurf to manage workspaces, projects, tasks, and AI agents through a hosted OAuth endpoint or a local stdio package, and to generate MCP tools from OpenAPI specs.2,530 npmMIT