Frisco MCP
Click on "Install 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., "@Frisco MCPadd milk, eggs and bread to my cart"
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.
Frisco MCP
A TypeScript Model Context Protocol (MCP) server that lets AI assistants (Claude, Gemini, etc.) interact with frisco.pl ā Poland's online grocery store.
Security First ā The server never stores your email or password. You log in manually in a visible browser window; only session cookies are persisted locally.

Features
Session
Tool | Description |
| Opens a visible Chromium window at the login page. You log in manually; the server polls for success and saves session cookies. |
| Opens the browser at the checkout page so you can select a delivery slot and pay. No automatic payment. |
| Closes the browser and deletes the saved session file. |
Cart
Tool | Description |
| Accepts a JSON list of products (name, search query, quantity). Searches for each item and clicks "Add to cart". Optionally clears the cart first. |
| Returns the current cart contents and total price. |
| Removes a specific product from the cart by name (partial match). |
Products
Tool | Description |
| Searches frisco.pl and returns top N results with prices. |
| Returns detailed product info: nutritional values (macros per 100g), weight/grammage, ingredients, and price. |
Logs
Tool | Description |
| Returns JSONL log events for the current or a specific session. |
| Returns the N most recent log events. |
Architecture
flowchart LR
A[MCP Client / AI Assistant] -->|stdio| B[src/index.ts<br/>McpServer]
B --> C[Session Tools<br/>src/tools/session.ts]
B --> D[Cart Tools<br/>src/tools/cart.ts]
B --> E[Product Tools<br/>src/tools/products.ts]
C --> G[src/browser.ts<br/>Playwright singleton]
D --> G
E --> G
C --> H[src/auth.ts<br/>session cookies]
D --> H
E --> H
D --> I[src/tools/helpers.ts<br/>navigation & parsing]
E --> I
H --> J[(~/.frisco-mcp/session.json)]
B --> L[src/logger.ts] --> M[(~/.frisco-mcp/logs/)]
G --> K[frisco.pl š]
I --> KMore diagrams (login flow, cart flow): docs/DIAGRAMS.md
Requirements
Node.js 20 or later
Chromium for Playwright (installed via the setup command below)
Setup
npm install
npx playwright install chromium
npm run buildMCP Client Configuration
The server communicates over stdio ā point your MCP client at node dist/index.js.
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"frisco": {
"command": "node",
"args": ["/absolute/path/to/frisco-mcp/dist/index.js"]
}
}
}Gemini (Google AI Studio)
The .gemini/settings.json in this repo already contains the configuration:
{
"mcpServers": {
"frisco-mcp": {
"command": "node",
"args": ["/absolute/path/to/frisco-mcp/dist/index.js"]
}
}
}Cursor
Add to your Cursor MCP settings (~/.cursor/mcp.json or workspace .cursor/mcp.json):
{
"mcpServers": {
"frisco": {
"command": "node",
"args": ["/absolute/path/to/frisco-mcp/dist/index.js"]
}
}
}Note: Replace the path with the absolute path to
dist/index.json your machine.
Usage
1. Log in
"Log me in to Frisco"
The login tool opens a Chromium window at frisco.pl/login. Log in manually ā the server waits up to 5 minutes and saves your session cookies once it detects a successful login.
2. Shop
"Add 2 liters of milk and wheat bread to cart"
The add_items_to_cart tool searches for each product, picks the first match, and clicks "Add to cart" the requested number of times.
"Find me natural yogurt"
The search_products tool returns a list of matching products with prices.
"Remove the butter from my cart"
The remove_item_from_cart tool finds a product in the cart by name and removes it.
3. Checkout
"Finish my Frisco session"
The finish_session tool opens your cart at frisco.pl/stn,cart so you can choose a delivery slot and pay ā the server never performs payment automatically.
Project Structure
frisco-mcp/
āāā src/
ā āāā index.ts # MCP server setup, tool registration
ā āāā auth.ts # Session cookie save/restore, login check
ā āāā browser.ts # Playwright browser singleton, product cache
ā āāā logger.ts # JSONL session logging
ā āāā types.ts # Shared TypeScript types
ā āāā tools/
ā āāā session.ts # login, finish_session, clear_session
ā āāā cart.ts # add_items_to_cart, view_cart, remove_item_from_cart
ā āāā products.ts # search_products, get_product_info
ā āāā helpers.ts # Navigation, popup dismissal, DOM parsing
ā āāā __tests__/ # Unit tests (Vitest)
āāā test_data/ # Sample HTML fixtures for tests
āāā docs/
ā āāā DIAGRAMS.md # Mermaid architecture & flow diagrams
āāā .github/
ā āāā workflows/
ā āāā test.yml # CI ā runs tests on push & PR
āāā dist/ # Compiled JS (generated by `npm run build`)
āāā vitest.config.ts
āāā package.json
āāā tsconfig.json
āāā .gitignoreData Storage
All user data is stored locally in ~/.frisco-mcp/:
File | Purpose |
| Saved browser cookies (no credentials) |
| Pointer to the active log session |
| Per-session event logs |
Development
# Run in dev mode (tsx, no separate build step)
npm run dev
# Build
npm run build
# Run built server
npm start
# Run tests
npm test
# Watch mode for tests
npm run test:watchCI
Tests run automatically on every push and pull request to master via GitHub Actions (.github/workflows/test.yml). The matrix tests against Node.js 20 and 22.
Tech Stack
Library | Role |
MCP server framework | |
Browser automation (Chromium) | |
HTML parsing for product info | |
Input schema validation | |
Language & build | |
Unit testing framework |
License
This project is licensed under the MIT License.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/mkidawa/frisco-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server