mcp-server
Allows fetching and extracting structured information from Amazon product pages using headless browser and HTML parsing tools.
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., "@mcp-serverFetch product info from this Amazon link"
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.
MCP-Server
This repo includes instruction and code to set up a MCP (Model Context Protocol) Server and add tools to it and interact with it with an LLM (Large Language Model).
Intro about MCP
The Model Context Protocol (MCP) is a new, standardized way to provide context and tools to your LLMs. In this repo, we will use FastMCP which makes building MCP servers and clients simple and intuitive.
FastMCP 2.0 is the #1 github trending repo, with over 10k stars and 600 forks as of May 2025.
Create tools, expose resources, define prompts, and more with clean, Pythonic code:
from fastmcp import FastMCP
mcp = FastMCP("Demo π")
@mcp.tool()
def add(a: int, b: int) -> int:
"""Add two numbers"""
return a + b
if __name__ == "__main__":
mcp.run()What is MCP?
The Model Context Protocol lets you build servers that expose data and functionality to LLM applications in a secure, standardized way. It is often described as βthe USB-C port for AIβ, providing a uniform way to connect LLMs to resources they can use. It may be easier to think of it as an API, but specifically designed for LLM interactions.
MCP servers can:
Expose data through Resources (think of these sort of like GET endpoints; they are used to load information into the LLMβs context)
Provide functionality through Tools (sort of like POST endpoints; they are used to execute code or otherwise produce a side effect)
Define interaction patterns through Prompts (reusable templates for LLM interactions)
And more!
There is a low-level Python SDK available for implementing the protocol directly, but FastMCP aims to make that easier by providing a high-level, Pythonic interface.
Why FastMCP?
The MCP protocol is powerful but implementing it involves a lot of boilerplate - server setup, protocol handlers, content types, error management. FastMCP handles all the complex protocol details and server management, so you can focus on building great tools. Itβs designed to be high-level and Pythonic; in most cases, decorating a function is all you need.
While the core server concepts of FastMCP 1.0 laid the groundwork and were contributed to the official MCP SDK, FastMCP 2.0 (this project) is the actively developed successor, adding significant enhancements and entirely new capabilities like a powerful client library, server proxying, composition patterns, and much more.
FastMCP aims to be:
π Fast: High-level interface means less code and faster development
π Simple: Build MCP servers with minimal boilerplate
π Pythonic: Feels natural to Python developers
π Complete: FastMCP aims to provide a full implementation of the core MCP specification
Set up
We uv which, a rust package management tool, much faster than pip.
If you don't have it already, install it:
curl -LsSf https://astral.sh/uv/install.sh | shThe advantages of uv over Pipenv/Pipfile include:
Faster dependency resolution and installation times.
Better integration with modern Python ecosystems like Poetry.
Reduced overhead in virtual environment management.
Enhanced security when resolving environment variables, though this also introduces new considerations (discussed later).
You may need to update your $PATH to reflex where uv gets installed.
Example for MacOS: /Users/<user>/.local/bin/
You can update your .bash_profile as follow:
# Setting PATH for uv
PATH="/Users/<user>/.local/bin/:${PATH}"
export PATHCreate a virtual environment
To create a default virtual env that will go in .venv, run:
uv venvActivate your environment
source .venv/bin/activateInstall the dependencies
uv add fastmcp==2.4.0 --frozenVerify the version
fastmcp versionYou should see something like that:
FastMCP version: 2.4.0
MCP version: 1.9.1
Python version: 3.11.9
Platform: macOS-15.4.1-x86_64-i386-64bit
FastMCP root path: /Users/Fab/Git/mcp-server/.venv/lib/python3.11/site-packagesProjects
MCP Server for extracting info from a Web Page from Amazon
This project demonstrates how to use FastMCP to build a simple MCP server and client with AI-assisted tool orchestration. The workflow operates as follows:
The user sends a message like "Fetch product info from this Amazon link."
The MCP client checks for a registered tool that can handle that task
The client sends a structured request to the MCP server
The MCP server executes the appropriate action (e.g., launching a headless browser)
The server returns structured results to the MCP client
The client forwards the results to the LLM, which presents them to the user
Features
This server offer two tools:
fetch_page: to download HTMLextract_info: extract organized information.
For more info see readme
Related MCP server: FastMCP Training Course Server
Quickstart - FastMCP Server and Tools
See Quickstart - creating an server and tool
FastMCP Server
To Learn about the core FastMCP server class and how to run it, refer to: FastMCP server
FastMCP Client
To Learn about the core FastMCP server class and how to run it, refer to: FastMCP client
Usage
uv run main.pyThis server cannot be installed
Maintenance
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/FabG/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server