Sitefetch
MCP server: Sitefetch
Installation
npx mcp-sitefetchAsk AI about Sitefetch
Powered by Claude · Grounded in docs
I know everything about Sitefetch. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
SiteFetch MCP Server
A Model Context Protocol (MCP) server that fetches entire websites and provides their content to Large Language Models like Claude.
Features
- Easy Website Capture: Simply specify a URL to capture an entire website and add it to Claude's context
- Caching System: Downloaded sites are stored in
~/.cache/sitefetchfor efficient reuse - MCP Resource Integration: Captured content is provided as MCP resources for LLM context
- Tool Operations: Supports site fetching, cache management, and listing of available sites
Installation
# Install dependencies
npm install
# Compile TypeScript
npm run build
Configuration
To use with Claude Desktop, add this server to your configuration file:
-
Open your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
Add the following configuration:
{
"mcpServers": {
"sitefetch": {
"command": "node",
"args": ["/absolute/path/to/sitefetch-mcp/build/index.js"]
}
}
}
- Restart Claude Desktop.
Usage
Fetching a Website
In Claude Desktop, make a request like:
"Please fetch https://example.com and analyze its content"
Claude will use the fetch-site tool to retrieve the website content:
Executing fetch-site tool with parameters:
{
"url": "https://example.com",
"forceRefresh": false
}
Available Tools
fetch-site
Retrieves website content and stores it as a resource.
Parameters:
url: The URL of the website to fetch (required)forceRefresh: Whether to force update the cache (optional, defaults to false)
list-sites
Displays a list of all fetched websites.
clear-cache
Removes all cached website data.
Resource Access
Fetched website content is accessible via the following URI:
sitefetch://{encodedUrl}
Where {encodedUrl} is the URL-encoded address of the website.
How It Works
- When the
fetch-sitetool is called, it uses thesitefetchlibrary to capture the specified website - The content is stored in the
~/.cache/sitefetchdirectory - The content is provided as an MCP resource with the URI
sitefetch://{encodedUrl} - Claude can reference this resource and include it in its context as needed
File Structure
~/.cache/sitefetch/*.txt: Cached website content~/.cache/sitefetch/sitefetch_metadata.json: Metadata for cached websites
Troubleshooting
Website Fetching Fails
- Check your internet connection
- Verify the URL is correct
- Use the
list-sitestool to check already fetched sites - Try clearing the cache with the
clear-cachetool and retry
Cache Issues
- Ensure the
~/.cache/sitefetchdirectory exists and you have write permissions - Verify you have sufficient disk space
Dependencies
- @modelcontextprotocol/sdk: Implementation of the MCP protocol
- sitefetch: Tool for fetching entire websites
- zod: Type validation library
Note for developers: This project uses the Model Context Protocol to provide additional context to LLMs like Claude. For more information, refer to the MCP documentation.
