TypeScript MCP server for web search and scraping using Serper API with powerful content extraction features
The Serper Search and Scrape MCP Server is a sophisticated server implementation in TypeScript, designed to enhance AI applications by integrating powerful web search and webpage scraping functionalities through the Model Context Protocol (MCP). Built on top of the powerful Serper API, this server supports rich query parameters and advanced search operators, making it an indispensable tool for developers looking to expand the capabilities of their AI workflows. The server is compatible with leading MCP clients like Claude Desktop and can be easily integrated into applications such as Continue and Cursor, offering a seamless interaction between AI apps and data sources.
The Serper Search and Scrape MCP Server excels in multiple areas that significantly benefit AI applications:
site
, filetype
, inurl
, intitle
, related
, cache
, before
, after
, exact
, and exclude
.These features are essential for both search and scraping operations, making this MCP server a versatile tool in any AI developer’s arsenal. They align closely with the requirements of MCP clients by offering granular control over web interactions and data extraction processes.
The architecture and protocol implementation of Serper Search and Scrape MCP Server are designed to optimize performance and compatibility with a wide range of AI applications. The core components include:
By leveraging these components, the server ensures that it can be easily integrated into existing systems without requiring substantial coding efforts. This makes it an attractive option for developers looking to enhance their applications' capabilities through MCP-compliant technologies.
To get started with the Serper Search and Scrape MCP Server, follow these steps:
Create a .env
file in the root directory with your Serper API key:
SERPER_API_KEY=your_api_key_here
Run the following commands to set up and build the server:
npm install
npm run build
For real-time development with auto-rebuild:
npm run watch
Various test scripts are available to ensure the server is functioning as expected:
npm test # Run all tests
npm run test:watch # Run tests in watch mode
npm run test:coverage # Run tests with coverage
npm run test:integration # Run integration tests
Use the MCS Inspector for debugging:
npm run inspector
This command provides a URL accessible via your browser to debug communication over stdio.
The Serper Search and Scrape MCP Server can be leveraged across several key use cases, enhancing the capabilities of various AI workflows:
These use cases highlight the server's potential to enhance the operational agility of AI applications by providing fast, accurate data acquisition mechanisms.
The Serper Search and Scrape MCP Server is compatible with several MCP clients, each integrating in slightly different ways:
npx -y @smithery/cli install @marcopesani/mcp-server-serper --client claude
claude_desktop_config.json
:
{
"mcpServers": {
"serper-search": {
"command": "npx",
"args": ["-y", "serper-search-scrape-mcp-server"],
"env": {
"SERPER_API_KEY": "your_api_key_here"
}
}
}
}
{
"mcpServers": {
"github.com/marcopesani/mcp-server-serper": {
"command": "npx",
"args": ["-y", "serper-search-scrape-mcp-server"],
"env": {
"SERPER_API_KEY": "your_api_key_here"
},
"disabled": false,
"autoApprove": ["google_search", "scrape"]
}
}
}
{
"mcpServers": {
"github.com/marcopesani/mcp-server-serper": {
"command": "npx",
"args": ["-y", "serper-search-scrape-mcp-server"],
"env": {
"SERPER_API_KEY": "your_api_key_here"
},
"disabled": false,
"autoApprove": ["google_search", "scrape"]
}
}
}
This compatibility ensures that developers have a wide range of options for integrating the server with their preferred AI applications.
To ensure optimal performance and usability, the Serper Search and Scrape MCP Server is rigorously tested across different environments and clients. Here’s a matrix illustrating compatibility:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
For advanced users, the server provides several configuration options to tailor it to specific needs:
docker run -e SERPER_API_KEY=your_api_key_here mcp-server-serper
docker build -t mcp-server-serper .
Run the container with your specific environment variables:
docker run -e SERPER_API_KEY=your_api_key_here mcp-server-serper
.env
file for managing environment settings.By following these guidelines, users can effectively configure and secure the server to meet their unique requirements in a safe and efficient manner.
.env
file or pass environment variables directly when running the Docker container.This comprehensive guide positions Serper Search and Scrape MCP Server as a valuable tool for developers seeking to integrate advanced web search and scraping capabilities into their AI applications.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration