glyph

benmyles/glyph

3.3

If you are the rightful owner of glyph and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

glyph is a Model Context Protocol (MCP) server that extracts symbol outlines from codebases using Tree-sitter's query language, providing LLM coding agents with efficient context.

glyph is a powerful tool designed to enhance the capabilities of LLM coding agents by providing them with a clear understanding of code structure. It utilizes Tree-sitter's declarative query language to parse code files and generate symbol outlines, which are essential for AI models to comprehend and interact with codebases effectively. glyph supports multiple programming languages, including Go, Java, JavaScript, TypeScript, and Python, and is easily extendable to new languages with minimal effort. By offering configurable detail levels, glyph allows users to tailor the amount of context provided, ensuring that AI models receive the necessary information without exceeding token limits. Its high-performance architecture ensures fast and efficient symbol extraction, making it an ideal choice for integrating with AI coding workflows.

Features

  • Declarative Query-Based Extraction: Uses Tree-sitter's query language for precise, maintainable symbol extraction.
  • Glob-based File Discovery: Allows users to point glyph at their code with familiar patterns.
  • Language-agnostic Architecture: Easy to add new languages with just query patterns.
  • Configurable Detail Levels: Users can choose how much context they need.
  • High Performance: Optimized Tree-sitter queries for fast extraction.

Usages

Claude Code

bash
# Add glyph as a local MCP server (for your current project)
claude mcp add glyph /usr/local/bin/glyph mcp

Cursor

{
  "mcpServers": {
    "glyph": {
      "command": "/usr/local/bin/glyph",
      "args": ["mcp"]
    }
  }
}