Skip to content
cmgoffena13Public

About

Give agents fast, accurate, and compact context on your SQLMesh projects

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

SQLParse

Lines of Code Build Status License

SQLParse is a SQLMesh project indexer that gives agents fast, accurate, and compact context while reducing token usage. It parses your SQLMesh project and stores those relationships in a local SQLite database.

Install MCP Server and Skill

  1. Put the sqlparse binary on your PATH (release asset or make compile → dist/sqlparse).
  2. sqlparse install

Note: The SQLMesh project must match the binary Python version, 3.12, or issues could occur during 3rd party package imports to initialize the config.

Tools

Tool Description
list_catalogs Return every catalog (DEFAULT marked) with schema and table counts.
list_schemas Return schema names in one catalog with table counts.
list_models Return the model names in one schema.
get_directory_tree Return the project's directory/file tree with line counts.
search Full-text search model, query, and column names.
get_model Return a model's SQL tree and relevant references.
get_query Return a query's definition.
get_query_schema Return a query's output schema.
get_span_at_lines Return the SQLMesh element that covers a line range.
get_test Return a test definition.
get_macro Return a macro's definition and the model queries that use it.
get_audit Return an audit's definition and the models that use it.
get_signal Return a signal's definition and the models that use it.
get_materialization Return a materialization's definition and the models that use it.
get_model_relations Return dependents or dependencies for one model.
get_column_relations Return dependents or dependencies for one column.

Resources

Resource Description
skill://sqlparse/SKILL.md Guided exploration skill for navigating SQLMesh projects.
workspace://sqlparse/root Absolute path of the workspace this MCP server is indexing.
stats://sqlparse/sessions Per-session markdown table of files with tool calls and a tokens-saved range.

Commands

Command Description
install Register the MCP server in installed clients and write the skill.
uninstall Remove the sqlparse MCP server, skill, indexes, and binary.
update Replace the binary with the latest release (--version optional) and update the skill.
init Fully index the workspace.
mcp Start the MCP server (used by MCP host).

About

Give agents fast, accurate, and compact context on your SQLMesh projects

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages