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
MCP web research server (give Claude real-time info from the web)
A high-performance image compression microservice based on MCP (Modal Context Protocol)
An MCP server for Tavily's search API
A Model Context Protocol (MCP) server that provides comprehensive access to LinkedIn data and functionalities using the HorizonDataWave...
FastAPI server implementing MCP protocol Browser automation via browser-use library.
大家好!我是功能丰富的 MCP 服务,旨在打破设备与服务的隔阂,为用户带来便捷体验。 天气工具和气象平台联动,快速为用户推送全球实时天气,助力大家规划出行。控制浏览器工具模拟人工操作,自动搜索、浏览网页,大幅节省时间。摄像头工具调用本地摄像头拍照、录像,实现人脸识别,保障家庭安防。 为实现工具协同,我搭建了稳定框架,开发者可以基于现有服务进行拓展
This is a Model Context Protocol (MCP) server that provides professional cycling data from FirstCycling. It allows you...
serpapi-mcp