
servidor frontebro-mcp
3 years
Works with Finder
0
Github Watches
0
Github Forks
0
Github Stars
Frontegg MCP Server
This project implements a Model Context Protocol (MCP) server that interacts with the Frontegg API.
Prerequisites
- Node.js (version 18.0.0 or higher)
- npm or yarn
Installation
- Clone the repository:
git clone <repository-url> cd frontegg-mcp-server
- Install dependencies:
ornpm install
yarn install
Configuration
This server requires authentication with Frontegg. You need to set up proper configuration to connect your MCP server with Frontegg's API.
First, ensure you have your Frontegg credentials available.
Configure your environment variables
Create a .env
file in the root directory with your Frontegg credentials:
FRONTEGG_CLIENT_ID=your_client_id
FRONTEGG_API_KEY=your_api_key
# Optional: Only needed if not using the default Frontegg URL (https://api.frontegg.com)
# FRONTEGG_BASE_URL=https://api.frontegg.com
Replace your_client_id
and your_api_key
with your actual Frontegg credentials from your Frontegg account settings.
Running the Server
- Build the project:
npm run build
- Start the MCP server:
npm start
This will start the server, which listens for MCP connections via standard input/output (stdio).
How to use with Claude Desktop
-
Locate Claude Desktop Config File
To locate the
claude_desktop_config.json
file:- Open the Claude Desktop app and enable Developer Mode from the top-left menu bar.
- Go to Settings, navigate to the Developer section, and click the Edit Config button.
Alternatively, open the file directly:
-
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
-
Windows:
%APPDATA%\Claude\claude_desktop_config.json
-
Add Server Configuration
Add the following to the
mcpServers
section inclaude_desktop_config.json
:{ "mcpServers": { "frontegg": { "command": "node", "args": ["/path/to/frontegg-mcp-server/build/index.js"], "env": { "FRONTEGG_CLIENT_ID": "your_client_id", "FRONTEGG_API_KEY": "your_api_key" // FRONTEGG_BASE_URL is optional and defaults to https://api.frontegg.com } } } }
Replace
/path/to/frontegg-mcp-server
with the absolute path to your project directory, and fill in your credentials. -
Restart Claude Desktop
- Fully quit Claude Desktop.
- Relaunch Claude Desktop.
- Check for the 🔌 icon to confirm the server connection.
How to use with Cursor AI
-
Create MCP Configuration File
You can configure Cursor per-project or globally.
-
Project-level: Create a
.cursor/mcp.json
file in the root of this project. -
Global: Create a
~/.cursor/mcp.json
file in your home directory.
-
Project-level: Create a
-
Add Server Configuration
Add the following content to your chosen
mcp.json
file:{ "mcpServers": { "frontegg": { "command": "node", "args": ["./build/index.js"], "env": { "FRONTEGG_CLIENT_ID": "your_client_id", "FRONTEGG_API_KEY": "your_api_key" // FRONTEGG_BASE_URL is optional and defaults to https://api.frontegg.com } } } }
Replace
your_client_id
,your_api_key
. If using the global configuration, ensure the path inargs
points to the correct location ofbuild/index.js
(e.g., use an absolute path). -
Restart/Reload Cursor
After saving the file, restart Cursor or reload the project/window to activate the MCP server.
Running the Server
- Build the project:
npm run build
- Start the MCP server:
npm start
This will start the server, which listens for MCP connections via standard input/output (stdio).
Running as an HTTP Server
Alternatively, you can run the server in HTTP mode. This mode exposes an HTTP endpoint (/mcp
) that MCP clients can connect to over the network.
- Build the project (if not already done):
npm run build
- Start the HTTP server:
By default, the server listens on port 3000. You can change the port using thenpm run start:http
PORT
environment variable or the--port
command-line argument:
(Note the extraPORT=8080 npm run start:http # or npm run start:http -- --port 8080
--
before--port
when using npm scripts).
Configuring Clients for HTTP Mode
When running in HTTP mode, clients like Claude Desktop need to connect to the server's URL (e.g., http://localhost:3000/mcp
).
Important: The Claude Desktop configuration example provided earlier (claude_desktop_config.json
) is for the stdio server. Configuring Claude Desktop (or other clients) to connect to an HTTP MCP server might require a different configuration structure (e.g., using a url
field instead of command
/args
).
Consult your MCP client's documentation for instructions on connecting to an MCP server via an HTTP endpoint. You will typically need to provide the base URL where the server is listening (e.g., http://localhost:3000
). The client will usually append /mcp
automatically.
If direct URL configuration is not supported by your client, you may need to run the HTTP server manually in a separate terminal and then configure the client accordingly, if possible.
Model Context Protocol (MCP) Integration
This application acts as an MCP server (@modelcontextprotocol/sdk/server
). It registers tools (defined in ./src/tools/
) that can be invoked by an MCP client (like an AI model or development tool).
The server uses @modelcontextprotocol/sdk/server/stdio
for communication, meaning it expects MCP messages via stdin and sends responses via stdout.
To interact with this server using an MCP client, configure the client to launch the frontegg-mcp-server
executable (or run npm start
or node build/index.js
in the project directory).
Tools
This server provides the following tools to interact with the Frontegg API:
Applications
-
get_users_for_application
: Retrieves users assigned to a specific application. -
assign_users_to_application
: Assigns users to a specific application. -
get_applications
: Fetches Frontegg applications with optional filters.
API Tokens
-
create_api_token
: Creates a new API token. -
delete_api_token
: Deletes an API token. -
get_api_tokens
: Retrieves API tokens.
Tenant Access Tokens
-
create_token
: Creates a new tenant access token. -
get_tokens
: Retrieves tenant access tokens. -
delete_token
: Deletes a tenant access token.
Client Credentials
-
create_client_credentials
: Creates a new client credentials token. -
get_client_credentials
: Retrieves client credentials tokens. -
update_client_credentials
: Updates an existing client credentials token. -
delete_client_credentials
: Deletes a client credentials token.
Permissions
-
create_permission
: Creates a new permission. -
delete_permission
: Deletes a permission. -
get_permissions
: Retrieves permissions. -
update_permission
: Updates an existing permission. -
set_permission_multiple-roles
: Associates a permission with multiple roles. Existing roles remain associated. -
set_permissions_classification
: Sets the classification type (assignment rule: NEVER, ALWAYS, ASSIGNABLE) for specified permissions. -
set_permissions_to_role
: Assigns permissions to a role, replacing any existing permissions.
Permission Categories
-
get_permission_categories
: Retrieves permission categories. -
create_permission_category
: Creates a new permission category. -
update_permission_category
: Updates an existing permission category. -
delete_permission_category
: Deletes a permission category.
Personal Tokens
-
create_personal_token
: Creates a new personal API token. -
delete_personal_token
: Deletes a personal API token. -
get_personal_tokens
: Retrieves personal API tokens.
Roles
-
create_role
: Creates a new role. -
delete_role
: Deletes a role. -
get_roles
: Retrieves roles. -
update_role
: Updates an existing role.
Tenants
-
create_tenant
: Creates a new tenant account. -
update_tenant
: Updates an existing tenant account. -
delete_tenant
: Deletes a tenant account.
Users
-
invite_user
: Invites a new user to a specified tenant. -
delete_user
: Deletes a user. -
get_users
: Retrieves users. -
update_user
: Updates an existing user.
相关推荐
🔥 1Panel proporciona una interfaz web intuitiva y un servidor MCP para administrar sitios web, archivos, contenedores, bases de datos y LLM en un servidor de Linux.
🧑🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.
⛓️Rulego es un marco de motor de regla de orquestación de componentes de alta generación de alto rendimiento, de alto rendimiento y de alto rendimiento para GO.
Cree fácilmente herramientas y agentes de LLM utilizando funciones Plain Bash/JavaScript/Python.
😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 Qq / 微信(企业微信、个人微信) / 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 Chatgpt 、 Deepseek 、 DiFy 、 Claude 、 Gemini 、 Xai 、 PPIO 、 Ollama 、 LM Studio 、阿里云百炼、火山方舟、 Siliconflow 、 Qwen 、 Moonshot 、 Chatglm 、 SillyTraven 、 MCP 等 LLM 的机器人 / Agente | Plataforma de bots de mensajería instantánea basada en LLM, admite Discord, Telegram, WeChat, Lark, Dingtalk, QQ, Slack
Iniciar aplicaciones de múltiples agentes empoderadas con Building LLM de manera más fácil.
Reviews

user_S28sYzgx
Frontegg-MCP-Server has been a game-changer for my application development. The seamless integration with various tools and features it offers is remarkable. It stands out in user management and customization, helping me deliver robust applications with ease. Highly recommend it for anyone looking to streamline their backend processes and improve overall efficiency. Great job by Frontegg!

user_EEvtqS98
I've been using the Frontegg MCP server, and it has significantly streamlined our application's user management and authentication processes. The integration was straightforward, and the robust security features provide peace of mind. The team at Frontegg has done an excellent job with this product, making it a reliable and efficient solution for any application in need of powerful user management capabilities.

user_zwyYEZLL
I've been using frontegg-mcp-server for a few months now, and it has significantly streamlined our server management. The user interface is intuitive, and the API integration is seamless. Frontegg has done an excellent job in delivering a reliable and efficient product that meets all our needs. Highly recommended for anyone looking for a robust MCP solution!

user_nEGiyqPN
I've been using Frontegg-MCP-Server, and it's been a game-changer for our application management. It's incredibly user-friendly and the seamless integration has made it an indispensable tool for our team. Highly recommended for anyone looking to streamline their MCP operations!

user_vrvjrH9J
As a dedicated user of the frontegg-mcp-server, I am impressed with its seamless integration and robust functionality. It offers excellent support for microservices and scalable architecture, making my development process much more efficient. Also, the support team from frontegg is highly responsive and helpful. Highly recommend it for developers looking for a reliable MCP solution.

user_kzN4AnbY
The frontegg-mcp-server is an outstanding tool for any mcp application enthusiast. Its seamless integration and robust features make it a top choice for managing servers efficiently. The intuitive interface and comprehensive support provided by Frontegg ensure an excellent user experience. This tool has significantly streamlined my server management tasks and improved overall performance. Highly recommend!

user_srZGCX4k
As a dedicated user of the frontegg-mcp-server, I can confidently say it has significantly streamlined our management and deployment processes. This product by frontegg is incredibly powerful and user-friendly, making the entire experience seamless. Highly recommended for anyone needing a robust MCP application!

user_Fjgd5IF5
The Frontegg-MCP-Server is an exceptional tool for managing multi-cloud platform applications. Its seamless integration and user-friendly interface make it a must-have for developers. The robust feature set and outstanding performance ensure that our deployments are efficient and reliable. Kudos to Frontegg for delivering such an innovative and high-quality product!

user_ySYKdULr
I have been using the frontegg-mcp-server for several months, and it has significantly improved my development process. The seamless integration, intuitive interface, and robust features make it an essential tool. It's clear that Frontegg put a lot of thought into creating a product that addresses real-world needs. Highly recommend it to anyone looking for a reliable and efficient server solution.