✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

Website Info MCP Server

smithery badge

An MCP (Model Context Protocol) server for extracting information from websites using the AgentQL API.

Features

  • fetch_website: Fetches the entire content of a website

    • Extracts title, content, links, and images
    • Falls back to direct HTTP requests if AgentQL API is not available
  • extract_content: Extracts specific content using CSS selectors

    • Customizable content extraction
    • Supports complex selectors
  • Resource: website://info for obtaining information from websites

Installation

Using with Cursor

  1. Open Cursor settings
  2. Go to Model Context Protocol
  3. Add new MCP server with:
    {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli@latest",
        "run",
        "@cancelei/mcp_test_booking",
        "--config",
        "{"AGENTQL_API_KEY":"your_api_key_here"}"
      ]
    }
    

Local Development

  1. Install dependencies:

    bundle install
    
  2. Set environment variables:

    export AGENTQL_API_KEY=your_api_key
    
  3. Run the server:

    ruby server.rb
    

Usage Examples

Fetch Website Content

# Using fetch_website tool
response = call_tool("fetch_website", { url: "https://example.com" })

# Using website://info resource
response = call_resource("website://info", { url: "https://example.com" })

Extract Specific Content

# Extract specific elements using CSS selectors
selectors = {
  title: "title",
  headings: "h1, h2",
  main_content: ".main-content p"
}.to_json

response = call_tool("extract_content", {
  url: "https://example.com",
  selectors_json: selectors
})

Configuration

Environment Variables

  • AGENTQL_API_KEY: Required for enhanced web scraping capabilities
  • PORT: Server port (default: 3000)

Smithery Deployment

The server is deployed on Smithery and can be accessed at: https://smithery.ai/server/@cancelei/mcp_test_booking

Response Format

Success Response

{
  "status": "success",
  "title": "Page Title",
  "url": "https://example.com",
  "description": "Page description",
  "content": "Main content text",
  "links": [
    {"text": "Link Text", "href": "https://example.com/link"}
  ],
  "images": [
    {"alt": "Image Alt", "src": "https://example.com/image.jpg"}
  ],
  "source": "agentql"
}

Error Response

{
  "status": "error",
  "message": "Error description"
}

License

MIT

Website Information MCP Server

174

Project Details

Featured Templates

View More
AI Assistants
Talk with Claude 3
153 1036
AI Assistants
AI Chatbot Starter Kit v0.1
127 561
AI Agents
AI Video Generator
244 1250 5.0
AI Engineering
Python Bug Fixer
117 957

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.