A server that provides full web search, summaries and page extration for use with Local LLMs.
A TypeScript MCP (Model Context Protocol) server that provides comprehensive web search capabilities with multiple tools for different use cases.
The server provides three specialised tools for different web search needs:
full-web-search
(Main Tool)When a comprehensive search is requested, the server:
get-web-search-summaries
(Lightweight Alternative)For quick search results without full content extraction:
full-web-search
get-single-web-page-content
(Utility Tool)For extracting content from a specific webpage:
This MCP server has been developed and tested with LM Studio. It has not been tested with other MCP clients.
Important: Prioritise using more recent models designated for tool use.
Older models (even those with tool use specified) may not work or may work erratically. This seems to be the case with Llama and Deepseek. Qwen3 and Gemma 3 currently have the best restults.
Requirements:
~/mcp-servers/web-search-mcp/
)npm install
npm run build
This will create a node_modules
folder with all required dependencies and build the project.mcp.json
to point to the extracted dist/index.js
file:{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/path/to/extracted/web-search-mcp/dist/index.js"]
}
}
}
Example paths:
~/mcp-servers/web-search-mcp/dist/index.js
C:\\mcp-servers\\web-search-mcp\\dist\\index.js
Note: You must run npm install
in the root of the extracted folder (not in dist/
).
Troubleshooting:
npm install
fails, try updating Node.js to version 18+ and npm to version 8+npm run build
fails, ensure you have the latest Node.js version installed"MAX_CONTENT_LENGTH": "10000"
, or another value, in your mcp.json
environment variables:{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/path/to/web-search-mcp/dist/index.js"],
"env": {
"MAX_CONTENT_LENGTH": "10000"
}
}
}
}
git clone https://github.com/mrkrsl/web-search-mcp.git
cd web-search-mcp
npm install
npm run build
npm run dev # Development with hot reload
npm run build # Build TypeScript to JavaScript
npm run lint # Run ESLint
npm run format # Run Prettier
Add to your mcp.json
:
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/path/to/web-search-mcp/dist/index.js"]
}
}
}
This server provides three specialised tools for different web search needs:
full-web-search
(Main Tool)The most comprehensive web search tool that:
Example Usage:
{
"name": "full-web-search",
"arguments": {
"query": "TypeScript MCP server",
"limit": 3,
"includeContent": true
}
}
get-web-search-summaries
(Lightweight Alternative)A lightweight alternative for quick search results:
full-web-search
Example Usage:
{
"name": "get-web-search-summaries",
"arguments": {
"query": "TypeScript MCP server",
"limit": 5
}
}
get-single-web-page-content
(Utility Tool)A utility tool for extracting content from a specific webpage:
Example Usage:
{
"name": "get-single-web-page-content",
"arguments": {
"url": "https://example.com/article",
"maxContentLength": 5000
}
}
You can also run the server directly:
# If running from source
npm start
See API.md for complete technical details.
MIT License - see LICENSE for details.
This is an open source project and we welcome feedback! If you encounter any issues or have suggestions for improvements, please: