Provides a tool for scraping product search results from phonelcdparts.com using Firecrawl and BeautifulSoup, retrieving product information including name, price, URL, and image for any search query.
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., "@PhoneLCDParts MCP Serverfind iPhone 15 Pro LCD screens with prices"
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.
PhoneLCDParts MCP Server
This project provides a Model Context Protocol (MCP) server with a tool to scrape product search results from phonelcdparts.com.
Purpose
The primary tool, scrape_phonelcdparts, allows an MCP-compatible client (like an LLM agent) to query the phonelcdparts.com website for products based on a search term. It returns structured JSON data containing the product name, price, direct URL, and image URL.
This enables automated product information retrieval for various applications, such as price tracking, data analysis, or integration into larger AI-driven workflows.
Related MCP server: Vinted-scrapper
Prerequisites
Python 3.12 or higher.
uv(for environment and package management).A valid Firecrawl API key (from firecrawl.dev).
Setup
Clone the repository (if applicable) or navigate to the project directory:
cd path/to/phonelcdpart-mcpCreate and activate a virtual environment using
uv venv source .venv/bin/activateConfigure Firecrawl API Key: Create a file named
.envin thephonelcdpart-mcpproject root directory (i.e.,phonelcdpart-mcp/.env). Add your Firecrawl API key to this file:FIRECRAWL_API_KEY="YOUR_ACTUAL_FIRECRAWL_API_KEY_HERE"The application uses the
python-dotenvlibrary to load this key at runtime.Install dependencies using
uv pip install .This will install all dependencies listed in
pyproject.toml, includingpython-dotenv.
Running the MCP Server
You have a few options to run the server:
Directly using Python (for simple development):
python app.pyUsing Uvicorn (recommended for development, provides auto-reload): Ensure
uvicornis installed (it's inpyproject.toml).uvicorn app:mcp --reload --host 0.0.0.0 --port 8000(The
app:mcprefers to themcpinstance ofFastMCPin yourapp.pyfile.)Using the installed script (if After a successful
uv pip install ., a script defined inpyproject.tomlshould be available:start-mcpThis will typically use the
mcp.run()method.
The server will usually start on http://127.0.0.1:8000 or http://0.0.0.0:8000.
Using the Tool
Once the server is running, you can interact with it using any MCP-compatible client.
Tool Name:
scrape_phonelcdpartsDescription (from docstring): Scrapes product information (name, price, URL, image URL) from
phonelcdparts.comfor a given search query.Argument:
search_query(string): The product search term (e.g., "iphone 15 pro max lcd").
Returns: A list of dictionaries, where each dictionary contains:
name(string)price(string)url(string)image_url(string)
Example Call (conceptual, using a Python client):
This client code would connect to your running MCP server and invoke the scrape_phonelcdparts tool with the specified search query, then print the structured JSON results.