Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RAPPI_USER_IDYesNumeric Rappi user ID
RAPPI_DEVICE_IDYesUUID identifying the browser session
RAPPI_ACCESS_TOKENYesBearer token for API calls
RAPPI_REFRESH_TOKENYesUsed to obtain new access tokens

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
rappi_reloadA

Reload tokens from .env and rappi_client code into the running server (no Chrome needed).

rappi_authA

Extract Rappi credentials from Chrome and save them to .env.

Flow:

  • use_existing_chrome=True (default): attach to a Chrome already running with --remote-debugging-port=9223. Reads cookies immediately — user must already be logged into rappi.cl.

  • use_existing_chrome=False: launches a dedicated Chrome window pointed at rappi.cl, then waits up to 2 minutes for the user to log in. Once the auth cookies appear, exchanges the refresh token for a fresh access token and writes everything to .env automatically — no second call needed.

Returns the extracted values (tokens truncated for display).

rappi_list_addressesA

List all saved delivery addresses for this Rappi account. Use rappi_set_address to switch to a different one. Returns id, tag, address, active, lat, lng for each.

rappi_set_addressA

Switch the active delivery address by its ID (from rappi_list_addresses). If address_id is None, opens Rappi address settings in Chrome so you can add a new one. The change is in-memory and affects all subsequent store/product searches.

Args: address_id: Numeric address ID from rappi_list_addresses, or None to open Chrome.

rappi_list_storesA

List stores available for delivery, filtered by category.

Args: category: Store category to list. Common values: "market" — supermarkets (default) "restaurant" — restaurants "farma" — pharmacies "licores" — liquor stores "express-big" — express / convenience stores Any other Rappi store_type slug is also accepted. query: Optional name filter (case-insensitive). limit: Max results to return (default 50).

Returns a list of stores with store_id, name, store_type, lat, lng. Use store_id with rappi_search_products and store_type with cart tools.

rappi_get_storeA

Look up store metadata by numeric store_id.

Returns store_id, name, lat, lng, store_type (id + name). The store_type.id (e.g. "lider") is required by other tools.

rappi_search_productsA

Search products within a Rappi store.

Args: store_id: Numeric store ID (e.g. 900024799 for Lider). query: Search term in Spanish. size: Max results to return (default 40, max 40). offset: Pagination offset (increment by size to get next page).

Returns a list of products with: composite_id, name, trademark, price, real_price, discount, quantity, unit_type, sale_type, in_stock.

rappi_get_cartA

Return the current cart contents for a store type (e.g. "lider").

Returns a list of cart items with composite_id, units, sale_type, name, price.

rappi_add_to_cartA

Add an item to the cart (or increment its quantity if already present).

Args: store_id: Numeric store ID (e.g. 900024799). store_type: Store type slug (e.g. "lider"). composite_id: Product composite ID from rappi_search_products. units: Number of units to add. sale_type: "U" (unit) or "WP" (by weight), from search results.

Returns the updated cart response from Rappi.

rappi_remove_from_cartB

Remove an item from the cart by its composite_id.

Args: store_id: Numeric store ID (e.g. 900024799). store_type: Store type slug (e.g. "lider"). composite_id: Product composite ID to remove.

rappi_clear_cartB

Empty the entire cart for a store.

Args: store_id: Numeric store ID (e.g. 900024799). store_type: Store type slug (e.g. "lider").

rappi_checkoutA

Open the Rappi checkout page in Chrome so the user can complete payment.

Navigates Chrome directly to https://www.rappi.cl/checkout/{store_type}. Each store has its own checkout URL — pass the same store_type used in rappi_add_to_cart. The user must finish the order manually.

Args: store_type: Store type slug from rappi_list_stores or rappi_add_to_cart (e.g. "turbo_rappidrinks_nc", "lider", "expresslider").

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bgirardi99/RappiMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server