Cover image
servidor frontebro-mcp
Private

servidor frontebro-mcp

Try Now
2025-04-14

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

  1. Clone the repository:
    git clone <repository-url>
    cd frontegg-mcp-server
    
  2. Install dependencies:
    npm install
    
    or
    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

  1. Build the project:
    npm run build
    
  2. 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

  1. 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
  2. Add Server Configuration

    Add the following to the mcpServers section in claude_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.

  3. 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

  1. 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.
  2. 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 in args points to the correct location of build/index.js (e.g., use an absolute path).

  3. Restart/Reload Cursor

    After saving the file, restart Cursor or reload the project/window to activate the MCP server.

Running the Server

  1. Build the project:
    npm run build
    
  2. 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.

  1. Build the project (if not already done):
    npm run build
    
  2. Start the HTTP server:
    npm run start:http
    
    By default, the server listens on port 3000. You can change the port using the PORT environment variable or the --port command-line argument:
    PORT=8080 npm run start:http
    # or
    npm run start:http -- --port 8080
    
    (Note the extra -- 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

  1. get_users_for_application: Retrieves users assigned to a specific application.
  2. assign_users_to_application: Assigns users to a specific application.
  3. get_applications: Fetches Frontegg applications with optional filters.

API Tokens

  1. create_api_token: Creates a new API token.
  2. delete_api_token: Deletes an API token.
  3. get_api_tokens: Retrieves API tokens.

Tenant Access Tokens

  1. create_token: Creates a new tenant access token.
  2. get_tokens: Retrieves tenant access tokens.
  3. delete_token: Deletes a tenant access token.

Client Credentials

  1. create_client_credentials: Creates a new client credentials token.
  2. get_client_credentials: Retrieves client credentials tokens.
  3. update_client_credentials: Updates an existing client credentials token.
  4. delete_client_credentials: Deletes a client credentials token.

Permissions

  1. create_permission: Creates a new permission.
  2. delete_permission: Deletes a permission.
  3. get_permissions: Retrieves permissions.
  4. update_permission: Updates an existing permission.
  5. set_permission_multiple-roles: Associates a permission with multiple roles. Existing roles remain associated.
  6. set_permissions_classification: Sets the classification type (assignment rule: NEVER, ALWAYS, ASSIGNABLE) for specified permissions.
  7. set_permissions_to_role: Assigns permissions to a role, replacing any existing permissions.

Permission Categories

  1. get_permission_categories: Retrieves permission categories.
  2. create_permission_category: Creates a new permission category.
  3. update_permission_category: Updates an existing permission category.
  4. delete_permission_category: Deletes a permission category.

Personal Tokens

  1. create_personal_token: Creates a new personal API token.
  2. delete_personal_token: Deletes a personal API token.
  3. get_personal_tokens: Retrieves personal API tokens.

Roles

  1. create_role: Creates a new role.
  2. delete_role: Deletes a role.
  3. get_roles: Retrieves roles.
  4. update_role: Updates an existing role.

Tenants

  1. create_tenant: Creates a new tenant account.
  2. update_tenant: Updates an existing tenant account.
  3. delete_tenant: Deletes a tenant account.

Users

  1. invite_user: Invites a new user to a specified tenant.
  2. delete_user: Deletes a user.
  3. get_users: Retrieves users.
  4. update_user: Updates an existing user.

相关推荐

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

  • 1Panel-dev
  • 🔥 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.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llM 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Resumen de los mejores recursos del mundo.

  • rulego
  • ⛓️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.

  • sigoden
  • Cree fácilmente herramientas y agentes de LLM utilizando funciones Plain Bash/JavaScript/Python.

  • hkr04
  • SDK liviano C ++ MCP (Protocolo de contexto del modelo)

  • RockChinQ
  • 😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 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

  • dmayboroda
  • Trapo conversacional local con contenedores configurables

  • modelscope
  • Iniciar aplicaciones de múltiples agentes empoderadas con Building LLM de manera más fácil.

  • paulwing
  • Un repositorio de pruebas creado con el servicio MCP

    Reviews

    2.7 (9)
    Avatar
    user_S28sYzgx
    2025-04-24

    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!

    Avatar
    user_EEvtqS98
    2025-04-24

    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.

    Avatar
    user_zwyYEZLL
    2025-04-24

    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!

    Avatar
    user_nEGiyqPN
    2025-04-24

    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!

    Avatar
    user_vrvjrH9J
    2025-04-24

    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.

    Avatar
    user_kzN4AnbY
    2025-04-24

    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!

    Avatar
    user_srZGCX4k
    2025-04-24

    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!

    Avatar
    user_Fjgd5IF5
    2025-04-24

    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!

    Avatar
    user_ySYKdULr
    2025-04-24

    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.