Website Info MCP Server
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
- Open Cursor settings
- Go to Model Context Protocol
- 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
Install dependencies:
bundle install
Set environment variables:
export AGENTQL_API_KEY=your_api_key
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 capabilitiesPORT
: 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
Project Details
- cancelei/mcp_test_booking
- Last Updated: 3/17/2025
Categories
Recomended MCP Servers
AniList MCP server for accessing anime and manga data
A MCP Server for Google Scholar: Enable AI assistants to search and access Google Scholar papers through...
A powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text)...
A MCP server for LinkedIn to seamlessly apply for jobs
Enable AI assistants to search and access bioRxiv papers through a simple MCP interface.
GeekNews MCP Server
All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows
【Every star you give feeds a hungry developer's motivation!】A Model Context Protocol (MCP) server implementation that provides Google...