feat: add ECS MCP server#2623
Draft
taylor-swanson wants to merge 3 commits intoelastic:mainfrom
Draft
Conversation
Introduce `ecs-mcp`, a Go-based Model Context Protocol server that loads
every tagged ECS release (>= v1.12.0) from a local or cloned ECS repo into
a SQLite database and exposes it to MCP clients over stdio or HTTP.
The server provides four tools backed by per-version field, fieldset, and
expected-event-type tables:
- ecs_get_sql_tables return the SQLite schema
- ecs_match_fields check whether dotted field names exist in a
given ECS version
- ecs_search_fields FTS search over field definitions, with
camelCase / dotted-path tokenization
- ecs_execute_sql_query run arbitrary read-only SQLite queries
An embedded guide (ecs_guide.md) is served as an MCP prompt to teach
clients the version-scoped query workflow used for mapping package
fields to ECS.
Contributor
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
andrewkroh
reviewed
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
go-ecs