How to Use the Greptile MCP in Claude Code
Run deep codebase queries and manage repository indexes via this MCP Server directly from your terminal with Claude Code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Greptile MCP to Claude Code
Create your Vinkius account to connect Greptile to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Query codebases from the command line
The `query_codebase` tool executes semantic searches across your repository directly from your terminal session. Pipe the output to local utilities like grep or redirect it to a file for further analysis. This is ideal for terminal users who want to avoid switching to a browser. You get precise answers about your code structure without leaving your shell.
Automate repository indexing via CLI
The `index_repository` tool kickstarts the indexing process for any public or private repository using a single terminal command. You can script this tool in your CI/CD pipelines to ensure your index is updated on each release. Use `get_repository_status` to poll the indexing state from your shell scripts. This lets you automate downstream tasks that depend on a fully indexed codebase.
Manage MCP Server resources in shell
The `list_repositories` tool displays all currently indexed codebases in a clean list format. You can easily clean up old indexes by passing the repository names to `delete_repository` in a quick shell loop. This gives you complete control over your remote data footprint. It makes it easy to keep your workspace clean and manage your usage limits efficiently.
Set up Greptile MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seegreptile-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Greptile transactions." It will automatically discover and invoke the available Greptile tools.
claude mcp add --transport http greptile-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Greptile MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Greptile MCP today
We host it, we monitor it, we maintain it. You just paste one token.