Skip to main content
Glama
mcwalrus

opportunity-party-mcp

by mcwalrus

Opportunity Party Scraper

Scrapes the Opportunity Party website and converts policy PDFs to structured markdown. Output is stored under data/ and exposed via an MCP server for LLM consumption.

System requirements

Before running, install the following system tools:

brew install poppler   # provides pdftotext, used for PDF → text conversion

Python 3.12+ is also required.

Setup

uv sync

Usage

Run all scrapers:

uv run python main.py

Run specific targets:

uv run python main.py policies team news party-info pdfs

--clean wipes data/ before running (preserves data/policy-assets/):

uv run python main.py --clean

How it works

Target

What it does

policies

Scrapes policy pages, downloads PDFs from Google Drive, converts PDFs to markdown via pdftotext

team

Scrapes team / candidate pages

news

Scrapes news and media releases

party-info

Scrapes about / party information pages

pdfs

Re-converts already-downloaded PDFs without re-scraping

PDF conversion uses pdftotext -layout (from poppler) to preserve the layout of the party's policy documents, then strips running headers/footers and formats the body as clean markdown under data/policies/{slug}/.

MCP server

uv run python -m mcp.server

See mcp/README.md for available tools.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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/mcwalrus/oppertunity-party'

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