Fourth Playwright MCP Server

Fourth Playwright MCP Server

A hybrid Python and Node.js MCP server that integrates Playwright browser automation with specialized tools for navigating and extracting data from the Fourth platform. It enables automated login, module navigation, and structured reporting through a Claude.ai Custom Connector.

Category
Visit Server

README

Fourth Playwright MCP Server

Remote MCP server combining FastMCP v3 (Python) orchestration with @playwright/mcp (Node.js) browser automation. Designed for deployment to Railway as a Claude.ai Custom Connector.

Architecture

FastMCP v3 (Python) ─── SSE/Streamable HTTP ──→ Claude.ai
       │
       └── subprocess (stdio) ──→ @playwright/mcp (Node.js)
  • FastMCP v3: OAuth 2.1 proxy, Skills system, custom tools, HTTP transport
  • @playwright/mcp: 70+ browser automation tools via stdio subprocess
  • Custom tools: Fourth-specific authentication, navigation, data extraction

Setup

Prerequisites

  • Python 3.11+
  • Node.js 18+
  • uv (Python package manager)

Install

# Python dependencies
uv sync

# Node dependencies (installs @playwright/mcp + Chromium)
npm install

Run locally

uv run python src/server.py
# Server starts on http://localhost:8000
# Health check: curl http://localhost:8000/health
# MCP endpoint: http://localhost:8000/mcp

List tools

uv run fastmcp list src/server.py

Deployment (Railway)

  1. Connect this repo to Railway
  2. Railway auto-detects the Dockerfile
  3. Set environment variables (see .env.example)
  4. Railway sets PORT automatically

Claude.ai Custom Connector

  1. Go to Claude.ai → Settings → Connectors → Add Custom
  2. SSE URL: https://<app>.railway.app/mcp
  3. Configure OAuth with your Client ID/Secret

Custom Fourth Tools

Tool Description
fourth_login Automated login with credentials/SSO
fourth_navigate_module Navigate to Fourth module by name
fourth_extract_table Extract structured data from tables
fourth_extract_report Generate structured report from page
fourth_wait_for_load Smart wait for Fourth SPA
fourth_get_user_context Get current user/permissions/restaurant

Skills

Skills are exposed as MCP resources from the skills/ directory:

  • browser-automation - General browser automation patterns
  • fourth-workflows - Fourth-specific workflow instructions

Environment Variables

See .env.example for all configuration options.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured