An MCP server for gitingest that provides access to Git repository analysis through the Model Context Protocol (MCP). This server leverages the
If you already use Trelis Gitingest MCP, the trelis gitingest mcp mcp server is the piece that lets your assistant work with it directly. An MCP server for gitingest that provides access to Git repository analysis through the Model Context Protocol (MCP). This server leverages the gitingest library to analyze Git repositories and make their content available in a format.
This MCP server provides a single unified tool for accessing Git repository data. It automatically handles repository ingestion as needed, so users can immediately query repository content without an explicit ingestion step.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
resource_type — Type of data to retrieve (summary, tree, content, or all). Default is summarymax_file_size — Maximum file size in bytes to include in the analysis. Default is 10MBinclude_patterns — Comma-separated patterns of files to include in the analysisexclude_patterns — Comma-separated patterns of files to exclude from the analysisbranch — Specific branch to analyzeoutput — File path to save the output tomax_tokens — Truncates the response to a specified number of tokensSummary — A high-level summary of the repositoryTree — The file/directory structureContent — The full content (subject to size limits)Debugging — The best way to debug MCP servers is with the MCP InspectorConfiguration is passed through the environment: GITHUB_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Installation goes through your MCP client rather than a global install: point it at @modelcontextprotocol/inspector on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Trelis Gitingest MCP's toolset — resource_type, max_file_size, include_patterns and 8 more — is a fair guide to whether it matches your workflow. It is maintained by TrelisResearch; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| resource_type | Type of data to retrieve (summary, tree, content, or all). Default is summary. |
| max_file_size | Maximum file size in bytes to include in the analysis. Default is 10MB. |
| include_patterns | Comma-separated patterns of files to include in the analysis. |
| exclude_patterns | Comma-separated patterns of files to exclude from the analysis. |
| branch | Specific branch to analyze. |
| output | File path to save the output to. |
| max_tokens | Truncates the response to a specified number of tokens. |
| Summary | A high-level summary of the repository |
| Tree | The file/directory structure |
| Content | The full content (subject to size limits) |
| Debugging | The best way to debug MCP servers is with the [MCP Inspector](https://github.com/modelcontextprotocol/inspector). |
"mcpServers": {
"trelis-gitingest-mcp": {
"command": "uvx",
"args": [
"trelis-gitingest-mcp"
],
"env": {
"GITHUB_TOKEN": "github_pat_..."
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| GITHUB_TOKEN | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.