Auggie Context Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Auggie Context Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
https://docs.augmentcode.com/context-services/mcp/overview
A Model Context Protocol (MCP) server that exposes Auggie CLI for codebase context retrieval. This allows AI agents like Claude, Cursor, and others to query codebases using Augment's powerful context engine.
This MCP server is designed to be used with MCP clients like Claude Desktop or Cursor. It cannot be used standalone.
auggie loginThis opens a browser for authentication. Once logged in, you're ready to go!
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows){
"mcpServers": {
"auggie-context": {
"command": "npx",
"args": ["-y", "auggie-context-mcp@latest"]
}
}
}query_codebase tool available in ClaudeNote: If you need to use a specific token instead of your Auggie CLI login, you can add an env section with AUGMENT_SESSION_AUTH. See the Authentication section for details.
.cursor/mcp.json in your project or globallySee Installation & Usage section for detailed instructions.
npxauggie --versionThe server supports two authentication methods:
Simply log in using the Auggie CLI:
auggie loginThis opens a browser for authentication. Once logged in, the MCP server will automatically use your Auggie CLI session. No additional configuration needed!
Alternatively, you can provide an explicit access token via the AUGMENT_SESSION_AUTH environment variable.
Get Your Token:
# 1. Ensure Auggie CLI is installed
auggie --version
# 2. Sign in to Augment (opens browser)
auggie login
# 3. Print your access token
auggie token printThis will output something like:
TOKEN={"accessToken":"your-token-here","tenantURL":"https://...","scopes":["read","write"]}Set the Token in MCP client config:
Add the token to your MCP client configuration:
{
"mcpServers": {
"auggie-context": {
"command": "npx",
"args": ["-y", "auggie-context-mcp@latest"],
"env": {
"AUGMENT_SESSION_AUTH": "{\"accessToken\":\"your-token-here\",\"tenantURL\":\"https://...\",\"scopes\":[\"read\",\"write\"]}"
}
}
}
}Or set in shell environment:
# Get your token
TOKEN=$(auggie token print | grep '^TOKEN=' | cut -d= -f2-)
# One-time for current session
export AUGMENT_SESSION_AUTH="$TOKEN"
# Or persist in ~/.zshrc or ~/.bashrc
echo "export AUGMENT_SESSION_AUTH='$TOKEN'" >> ~/.zshrc
source ~/.zshrc⚠️ Security: Never commit tokens to source control. Use environment variables or secure config stores.
Note: This server is designed to be used with MCP clients (Claude Desktop, Cursor, etc.). It uses the MCP protocol over stdio and cannot be run standalone.
Add to your Cursor MCP config (.cursor/mcp.json - global or per-project):
Simple setup (uses your Auggie CLI login):
{
"mcpServers": {
"auggie-context": {
"command": "npx",
"args": ["-y", "auggie-context-mcp@latest"]
}
}
}With explicit token (optional):
{
"mcpServers": {
"auggie-context": {
"command": "npx",
"args": ["-y", "auggie-context-mcp@latest"],
"env": {
"AUGMENT_SESSION_AUTH": "{\"accessToken\":\"your-token-here\",\"tenantURL\":\"https://...\",\"scopes\":[\"read\",\"write\"]}"
}
}
}
}Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Simple setup (uses your Auggie CLI login):
{
"mcpServers": {
"auggie-context": {
"command": "npx",
"args": ["-y", "auggie-context-mcp@latest"]
}
}
}With explicit token (optional):
{
"mcpServers": {
"auggie-context": {
"command": "npx",
"args": ["-y", "auggie-context-mcp@latest"],
"env": {
"AUGMENT_SESSION_AUTH": "{\"accessToken\":\"your-token-here\",\"tenantURL\":\"https://...\",\"scopes\":[\"read\",\"write\"]}"
}
}
}
}Edit %APPDATA%\Claude\claude_desktop_config.json:
Simple setup (uses your Auggie CLI login):
{
"mcpServers": {
"auggie-context": {
"command": "npx",
"args": ["-y", "auggie-context-mcp@latest"]
}
}
}With explicit token (optional):
{
"mcpServers": {
"auggie-context": {
"command": "npx",
"args": ["-y", "auggie-context-mcp@latest"],
"env": {
"AUGMENT_SESSION_AUTH": "{\"accessToken\":\"your-token-here\",\"tenantURL\":\"https://...\",\"scopes\":[\"read\",\"write\"]}"
}
}
}
}query_codebaseQuery a codebase using Augment's context engine.
Parameters:
query (required): The question or query about the codebaseworkspace_root (optional): Absolute path to the workspace/repository root. Defaults to current directory.model (optional): Model ID to use. Example: claude-3-5-sonnet-20241022rules_path (optional): Path to additional rules filetimeout_sec (optional): Query timeout in seconds. Default: 240output_format (optional): Output format (text or json). Default: textExample Usage in Claude/Cursor:
What is the architecture of this codebase?
How does the authentication system work?
Where is the user registration logic implemented?
Show me how the payment processing is handled.# Clone the repository
git clone https://github.com/aj47/auggie-mcp.git
cd auggie-mcp
# Install dependencies
npm install
# Build
npm run build# Watch mode (auto-rebuild on changes)
npm run watch
# Run in development
npm run dev# Build the project
npm run build
# Make sure you're logged in to Auggie
auggie login
# Test with MCP Inspector (recommended)
npx @modelcontextprotocol/inspector node dist/index.js
# Or test with a real MCP client (Claude Desktop, Cursor)
# by pointing it to your local build instead of npxOptional: If you want to test with an explicit token instead of your Auggie CLI login:
export AUGMENT_SESSION_AUTH=$(auggie token print | grep '^TOKEN=' | cut -d= -f2-)
npx @modelcontextprotocol/inspector node dist/index.js┌─────────────────────┐
│ AI Agent │
│ (Claude, Cursor) │
└──────────┬──────────┘
│ MCP Protocol (stdio)
▼
┌─────────────────────┐
│ auggie-context-mcp │
│ (TypeScript/Node) │
│ │
│ Tool: │
│ - query_codebase │
└──────────┬──────────┘
│ subprocess
▼
┌─────────────────────┐
│ Auggie CLI │
│ --print --quiet │
│ │
│ Augment Context │
│ Engine │
└─────────────────────┘auggie login or set AUGMENT_SESSION_AUTH in the config~/Library/Logs/Claude/mcp*.log%APPDATA%\Claude\logs\mcp*.logThe server cannot find the Auggie CLI. Ensure it's installed and on your PATH:
auggie --versionIf not found, install from: https://docs.augmentcode.com/cli/overview
The Auggie CLI needs authentication. You have two options:
Option 1: Use Auggie CLI login (recommended)
auggie loginOption 2: Set explicit token in MCP config
auggie token print to get your tokenTOKEN=)env section in your MCP config (see examples above)For large codebases, queries may take longer. The default timeout is 240 seconds (4 minutes). If you need more time, you can't currently configure this in the MCP client config, but you can modify the source code and rebuild.
query_codebase tool in the available tools listAUGMENT_SESSION_AUTH to version controlMIT
Contributions are welcome! Please feel free to submit a Pull Request.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.