drio
Open app

MCP Server: Elasticsearch semantic search tool

Source

MCP server to search up-to-date elasticsearch docs

Catalog onlyCatalog onlySTDIO

Overview

MCP Server is a Python implementation designed for semantic search through blog posts indexed in Elasticsearch, specifically tailored for Search Labs.

To use the MCP Server, set up your Elasticsearch environment by adding the ES_URL and ES_AP_KEY to a .env file, then start the server using the command make dev. Access the MCP Inspector at http://localhost:5173 to interact with the server.

  • Semantic search capabilities for indexed blog posts. - Integration with Claude Desktop for enhanced functionality. - Easy setup and configuration for Elasticsearch.
  1. Performing semantic searches on blog content.
  2. Integrating with desktop applications for improved search experiences.
  3. Crawling and indexing blog posts for efficient retrieval.

Add to your AI client

Use these steps to connect MCP Server: Elasticsearch semantic search tool in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "elastic-semantic-search-mcp-server-jedrazb": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elastic-semantic-search-mcp-server-jedrazb"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "elastic-semantic-search-mcp-server-jedrazb": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elastic-semantic-search-mcp-server-jedrazb"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "elastic-semantic-search-mcp-server-jedrazb": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elastic-semantic-search-mcp-server-jedrazb"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "elastic-semantic-search-mcp-server-jedrazb": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elastic-semantic-search-mcp-server-jedrazb"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "elastic-semantic-search-mcp-server-jedrazb": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elastic-semantic-search-mcp-server-jedrazb"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "elastic-semantic-search-mcp-server-jedrazb": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-elastic-semantic-search-mcp-server-jedrazb"
      ]
    }
  }
}

FAQ

What is required to run the MCP Server?

You need to have Elasticsearch set up and the blog posts indexed in the `search-labs-posts` index.

Can I integrate MCP Server with other applications?

Yes! MCP Server can be integrated with Claude Desktop and potentially other applications that support API interactions.

Is there a specific version of Elasticsearch required?

The MCP Server is designed to work with the latest versions of Elasticsearch, but ensure compatibility with the ELSER model for semantic search.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2299,"uuid":"d5ec18ce-187d-4d08-b8a8-8e873bc3e13a","name":"elastic-semantic-search-mcp-server","title":"MCP Server: Elasticsearch semantic search tool","description":"MCP server to search up-to-date elasticsearch docs","avatar_url":"https://avatars.githubusercontent.com/u/14121688?v=4","created_at":"2025-03-09T07:27:28.863Z","updated_at":"2025-03-12T10:21:16.529Z","status":"created","author_name":"jedrazb","author_avatar_url":"https://avatars.githubusercontent.com/u/14121688?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/jedrazb/elastic-semantic-search-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-11 16:31:21\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]