Skip to main content
Glama

DocsScraper

DocsScraper MCP Server

An MCP server that connects to the DocsScraper web API to provide semantic search capabilities through documentation chunks.

Features

  • Semantic Search: Search through documentation chunks using embeddings and AI validation
  • API Integration: Connects to your DocsScraper web application via REST API
  • Fallback Sources: Automatically falls back to scraper sources when no local results are found
  • Configurable Results: Control the number of search results (1-10, default: 5)
  • Service Filtering: Filter search results by specific service names (case-insensitive)

Configuration

The server requires the following environment variables:

  • DOCS_SCRAPER_API_KEY: API key for authentication (required)

Tools

search_docs

Search through documentation chunks using semantic search.

Parameters:

  • query (string, required): The search query to find relevant documentation
  • top (number, optional): Maximum number of results to return (1-10, default: 5)
  • service (string, required): Service name to filter results by (case-insensitive)

Examples:

{ "query": "how to configure authentication", "service": "Binance", "top": 3 }
{ "query": "React hooks documentation", "top": 5, "service": "React" }

Resources

docs-scraper://api/info

Provides information about the connected DocsScraper API, including:

  • Base URL configuration
  • API key status
  • Endpoint details
  • Authentication method

API Integration

This server connects to the DocsScraper web API endpoint:

  • Endpoint: GET /api/chunks/search
  • Authentication: API Key via X-API-Key header
  • Parameters: query (string), top (number), service (string, optional)

The search endpoint:

  1. Uses embeddings to find semantically similar chunks
  2. Applies AI validation to ensure relevance
  3. Falls back to scraper sources if no local results are found
  4. Returns chunks with scores and source information

Installation

npm install npm run build

Usage

The server is designed to be used with MCP-compatible clients. Configure your client to connect to this server with the appropriate environment variables set.

Error Handling

The server provides detailed error messages for common issues:

  • Authentication failures (401)
  • Invalid requests (400)
  • Connection issues (ECONNREFUSED)

Development

# Build the server npm run build # Watch for changes during development npm run watch # Test with MCP inspector npm run inspector

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    Provides up to date dependency information of Clojure libraries
    Last updated -
    2
    19
    5
    JavaScript
    MIT License
    • Apple
  • -
    security
    A
    license
    -
    quality
    Access any documentation indexed by RagRabbit Open Source AI site search
    Last updated -
    3
    33
    TypeScript
    MIT License
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tanevanwifferen/DocsScraperMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server