Skip to main content
Glama

Elasticsearch MCP Server

Apache 2.0
209
  • Apple
index.py776 B
from typing import Dict, Optional from src.clients.base import SearchClientBase class IndexClient(SearchClientBase): def list_indices(self) -> Dict: """List all indices.""" return self.client.cat.indices() def get_index(self, index: str) -> Dict: """Returns information (mappings, settings, aliases) about one or more indices.""" return self.client.indices.get(index=index) def create_index(self, index: str, body: Optional[Dict] = None) -> Dict: """Creates an index with optional settings and mappings.""" return self.client.indices.create(index=index, body=body) def delete_index(self, index: str) -> Dict: """Delete an index.""" return self.client.indices.delete(index=index)

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/cr7258/elasticsearch-mcp-server'

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