URL-MCP is a service that transforms any web page into a Model Context Protocol (MCP) endpoint, enabling AI assistants to access and understand web content effortlessly.
- Transform any URL into an MCP endpoint
- Semantic search capabilities
- Metadata extraction
- Content caching
- Zero configuration required
GET /api/fetch_url_content?url=<encoded-url>
GET /api/search_url_content?url=<encoded-url>&query=<search-query>
GET /api/get_url_metadata?url=<encoded-url>
- Install dependencies:
npm install- Start the server:
npm startThe server will start on port 3000 by default.
# Fetch content from a URL
curl "http://localhost:3000/api/fetch_url_content?url=https%3A%2F%2Fexample.com"
# Search within URL content
curl "http://localhost:3000/api/search_url_content?url=https%3A%2F%2Fexample.com&query=search+term"
# Get URL metadata
curl "http://localhost:3000/api/get_url_metadata?url=https%3A%2F%2Fexample.com"