The MCP Web Tools Server provides a Model Context Protocol (MCP) implementation that enables LLMs (like Claude) to interact with web content through standardized tools. Currently, it includes a web scraping tool that can fetch and convert web content to markdown format.
To use this server, you'll need Python installed on your system.
Clone the repository:
git clone <repository-url>
cd MCP
Install the required dependencies:
pip install -r requirements.txt
For faster installation, you can use uv:
uv pip install -r requirements.txt
On macOS/Linux:
# Run the server with stdio transport (default)
./run.sh server
# Run the server with SSE transport
./run.sh server --transport sse --host localhost --port 5000
# Run the Streamlit UI
./run.sh ui
On Windows:
# Run the server with stdio transport (default)
run.bat server
# Run the server with SSE transport
run.bat server --transport sse --host localhost --port 5000
# Run the Streamlit UI
run.bat ui
Using stdio (default):
python server.py
Using SSE:
python server.py --transport sse --host localhost --port 5000
This starts an HTTP server on localhost:5000
that accepts MCP connections.
Running the Streamlit UI:
streamlit run streamlit_app.py
The MCP Inspector helps test and debug MCP servers:
Install the Inspector:
npm install -g @modelcontextprotocol/inspector
Run the Inspector with your server:
npx @modelcontextprotocol/inspector python server.py
Test the web_scrape
tool by providing a URL (e.g., example.com
) and viewing the returned markdown.
To use this server with Claude for Desktop:
Install Claude for Desktop
Open the configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration (adjust the path as needed):
{
"mcpServers": {
"web-tools": {
"command": "python",
"args": [
"/absolute/path/to/MCP/server.py"
]
}
}
}
Restart Claude for Desktop
The web_scrape
tool should now be available in Claude's interface
Once integrated with Claude, you can ask queries like:
Claude will use the web_scrape
tool to fetch the content and include it in its response.
The included Streamlit application lets you test your MCP servers configured in Claude for Desktop.
Start the Streamlit app:
streamlit run streamlit_app.py
Enter the path to your Claude for Desktop configuration file (default path is pre-filled)
Click "Load Servers" to see all available MCP servers
Select a server tab and click "Connect" to load its tools
Select a tool, provide the required parameters, and click "Execute" to run it
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.