Web-content-mcp enables fast web scraping via search or direct URLs with easy setup for various platforms
The Web Content MCP (Model Context Protocol) Server named web-content-mcp
is a powerful tool designed to enhance AI application workflows by providing fast and efficient web content retrieval. This MCP server supports both search-based content gathering from Google and direct URL access, making it versatile for various use cases within AI environments such as Claude Desktop, VSCode, and any other agent supporting MCP servers.
The web-content-mcp
server leverages Model Context Protocol (MCP) to offer seamless integration between AI applications and diverse data sources. The primary core features include:
web-search
tool to gather information without visiting each page individually, making it ideal for large-scale data collection.url
tool.These features are compatible with a wide range of MCP clients including:
This compatibility extends beyond these specific clients, ensuring robust integration with various AI applications that support the Model Context Protocol.
The architecture of the web-content-mcp
follows a standardized protocol mandated by MCP. It operates in an open-loop manner where:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
This flow ensures efficient and secure communication between different components in the process of data retrieval, making the web-content-mcp
a reliable solution for AI applications.
Installing and setting up the web-content-mcp
server is straightforward. Follow these detailed steps:
.env
file configured with required API keys.Clone the repository:
git clone https://github.com/yourusername/web-content-mcp.git
cd web-content-mcp
Install dependencies using pnpm:
pnpm install
Set up your .env
file with necessary API keys as outlined in the Configuration section.
Create or update a .env
file at the root of the project directory with:
GOOGLE_API_KEY=your_google_api_key
GOOGLE_SEARCH_ENGINE_ID=your_google_search_engine_id
Ensure that these environment variables are correctly formatted and stored securely.
The web-content-mcp
server can be integrated into several critical aspects of an AI workflow, including:
Imagine you're developing a marketing analytics tool using Claude Desktop. You need to aggregate data from multiple websites to analyze competitor strategies and track market trends.
Technical Implementation:
{
"mcpServers": {
"web-content-mcp": {
"command": "pnpx",
"args": [
"tsx",
"--env-file=/path/to/your/.env",
"/path/to/your/web-content-mcp/src/index.ts"
]
}
}
}
This configuration allows your marketing analytics tool to efficiently gather and process web content from various URLs, providing insights for informed decision-making.
For a news aggregation service using Continue as the MCP client, automated sitemaps are essential to ensure all articles are indexed correctly by search engines. The web-content-mcp
server can be deployed within the workflow as follows:
{
"mcpServers": {
"web-content-mcp": {
"command": "pnpx",
"args": [
"tsx",
"--env-file=/path/to/your/.env",
"/path/to/your/web-content-mcp/src/index.ts"
]
}
}
}
By integrating this server, the news aggregator can automatically scrape and categorize articles from various sources, ensuring comprehensive coverage in their sitemap.
To integrate the web-content-mcp
server across different AI applications:
Add the following configuration to your Claude Desktop settings:
{
"mcpServers": {
"web-content-mcp": {
"command": "pnpx",
"args": [
"tsx",
"--env-file=/path/to/your/.env",
"/path/to/your/web-content-mcp/src/index.ts"
]
}
}
}
For Windows users, update to:
{
"mcpServers": {
"web-content-mcp": {
"command": "pnpx",
"args": [
"tsx",
"--env-file=C:\\Users\\username\\Projects\\web-content-mcp\\.env",
"C:\\Users\\username\\Projects\\web-content-mcp\\src\\index.ts"
]
}
}
}
Modify your VSCode settings.json
to include:
{
"mcp": {
"servers": {
"web-content-mcp": {
"type": "stdio",
"command": "pnpx",
"args": [
"tsx",
"--env-file=/path/to/your/.env",
"/path/to/your/web-content-mcp/src/index.ts"
]
}
}
}
}
For Windows, ensure path escapes correctly:
{
"mcp": {
"servers": {
"web-content-mcp": {
"type": "stdio",
"command": "pnpx",
"args": [
"tsx",
"--env-file=C:\\\\Users\\\\username\\\\Projects\\\\web-content-mcp\\\\.env",
"C:\\\\Users\\\\username\\\\Projects\\\\web-content-mcp\\\\src\\\\index.ts"
]
}
}
}
}
The web-content-mcp
server is designed with broad compatibility in mind:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
This matrix indicates full support for resource and prompt functionality, with Cursor only supporting direct tool integration.
Here's a sample configuration demonstrating how to set up the web-content-mcp
:
{
"mcpServers": {
"web-content-mcp": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-web-content"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Ensure to replace your-api-key
with your valid API credentials.
Always configure security settings such as environment variables carefully and avoid hardcoding sensitive information directly in configuration files. Use secure practices like environment variable replacement and secrets management tools.
.env
file contains valid credentials; consult Google for support if needed.Contributions are encouraged! If you would like to contribute or report an issue, please open a pull request with your proposals. We appreciate any help in improving the web-content-mcp
server and making it more robust for AI application integrations.
Explore the broader MCP ecosystem and discover additional resources at:
Join our community to stay updated on new developments, participate in discussions, and contribute your insights.
By following this comprehensive documentation, developers can effectively integrate the web-content-mcp
server into their AI workflows, leveraging its robust capabilities through Model Context Protocol.
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
AI Vision MCP Server offers AI-powered visual analysis, screenshots, and report generation for MCP-compatible AI assistants
Learn how to use MCProto Ruby gem to create and chain MCP servers for custom solutions
Analyze search intent with MCP API for SEO insights and keyword categorization
Connects n8n workflows to MCP servers for AI tool integration and data access
Learn to connect to MCP servers over HTTP with Python SDK using SSE for efficient protocol communication