# Elasticsearch — MCP server on mcp.ai > Connect your Elasticsearch account and use 4 tools for databases straight from your AI agent. Connect with your own API key. Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. It provides real-time search and analytics for all types of data. By: mcp.ai · official Page: https://mcp.ai/elasticsearch ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_elasticsearch?ms=1787293560000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/elasticsearch/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/elasticsearch/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/elasticsearch/skill.md Postman collection (v2.1): https://mcp.ai/elasticsearch/postman.json ## Tools - elasticsearch_get_index_schema(index_name: string) — Tool to get the complete schema/mapping of a specific Elasticsearch index. Use when you need to understand the structure, field types, and mappings of an index. - elasticsearch_list_indices(index?: string, health?: string, sort_by?: string, expand_wildcards?: string, include_primary_shards_only?: boolean) — Tool to list all available Elasticsearch indices. Use when you need to get a list of indices in your Elasticsearch cluster, optionally filtering by pattern, health status, or other criteria. - elasticsearch_ping_cluster() — Tool to ping the Elasticsearch cluster and check if it is running. Use when you need to verify cluster connectivity and health status before performing operations. - elasticsearch_query_index(from?: integer, size?: integer, sort?: object[], query?: string, fields?: string[], highlight?: boolean, index_name: string, time_filter?: object, term_filters?: object[], range_filters?: object[], include_aggregations?: boolean) — Tool to query an Elasticsearch index with various filters, time ranges, and pagination support. Use when you need to search for documents in an index with complex filtering criteria. ## Example prompts - "What can I do in Elasticsearch?" - "Show me a summary of my Elasticsearch account" ## Links Docs: https://mcp.ai/docs/mcps/elasticsearch Website: https://mcp.ai/mcps/elasticsearch