Skip to content

ianpilon/urlmcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URL-MCP

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.

Features

  • Transform any URL into an MCP endpoint
  • Semantic search capabilities
  • Metadata extraction
  • Content caching
  • Zero configuration required

API Endpoints

1. Fetch URL Content

GET /api/fetch_url_content?url=<encoded-url>

2. Search URL Content

GET /api/search_url_content?url=<encoded-url>&query=<search-query>

3. Get URL Metadata

GET /api/get_url_metadata?url=<encoded-url>

Getting Started

  1. Install dependencies:
npm install
  1. Start the server:
npm start

The server will start on port 3000 by default.

Usage Example

# 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"

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors