Skip to main content
Glama
Windyhhh

Augment-MCP-Proxy

by Windyhhh

๐Ÿ”Œ Augment MCP Proxy Server | Augment MCP Proxy

Use Third-Party Anthropic API in Augment โ€” Save Your Credits

A lightweight MCP proxy server that connects Augment (Anthropic's official VS Code extension) to third-party Anthropic APIs, so Augment credits are not consumed โ€” only third-party API quota is used. It runs fully locally, with code analysis done on your machine, keeping your privacy safe and secure.

A lightweight MCP proxy server that connects Augment (Anthropic's official VS Code extension) to third-party Anthropic APIs, saving Augment credits. Runs fully locally with code analysis done on your machine for privacy.


โœจ Key Features

Feature

Description

๐Ÿ’ฐ Save Credits

No Augment credits consumed; only third-party API quota used

๐Ÿ”„ Seamless Integration

Augment's experience stays exactly the same; all features supported

๐Ÿ”’ Runs Locally

Code analysis happens locally, source code is never uploaded, privacy-safe

๐Ÿค– Multi-Model Support

Switch freely among three models: Haiku / Sonnet / Opus

โšก Lightweight

Only 2 dependencies (axios + dotenv), starts in seconds

๐ŸชŸ Cross-Platform

Runs on Windows / macOS / Linux


Related MCP server: roblox-mcp-bridge

๐Ÿ—๏ธ How It Works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     HTTP      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     HTTPS      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Augment    โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ†’ โ”‚  MCP Proxy       โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ†’ โ”‚  Third-Party     โ”‚
โ”‚   (VS Code)  โ”‚ โ†โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚  (localhost:3000)โ”‚ โ†โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚  Anthropic API   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    ๅ“ๅบ”       โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    ๅ“ๅบ”         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                    โ”‚
                                    โ”œโ”€ /v1/models    โ†’ ๆจกๅž‹ๅˆ—่กจ
                                    โ”œโ”€ /v1/messages  โ†’ ๆถˆๆฏ่ฝฌๅ‘
                                    โ””โ”€ /health        โ†’ ๅฅๅบทๆฃ€ๆŸฅ

The Augment plugin connects to the local proxy server via the MCP protocol. The proxy forwards requests to the third-party Anthropic API and returns responses to Augment. The entire process is completely transparent to Augment.


๐Ÿš€ Quick Start

Prerequisites

Node.js >= 14.0
npm >= 6.0

Installation Steps

# 1. ๅ…‹้š†้กน็›ฎ
git clone https://github.com/Windyhhh/Augment-MCP-Proxy.git
cd Augment-MCP-Proxy

# 2. ๅฎ‰่ฃ…ไพ่ต–
npm install

# 3. ้…็ฝฎ็Žฏๅขƒๅ˜้‡
cp .env.example .env
# ็ผ–่พ‘ .env๏ผŒๅกซๅ…ฅไฝ ็š„็ฌฌไธ‰ๆ–น API Key

Configure .env

# ็ฌฌไธ‰ๆ–น API ๅœฐๅ€๏ผˆๅ…ผๅฎน Anthropic ๆ ผๅผ็š„ API๏ผ‰
THIRD_PARTY_API=https://your-api-endpoint.com/anthropic

# ไฝ ็š„ API Key
API_KEY=sk-your-api-key-here

# MCP ๆœๅŠกๅ™จ็ซฏๅฃ๏ผˆ้ป˜่ฎค 3000๏ผ‰
MCP_PORT=3000

Start the Server

# ๆ–นๅผไธ€๏ผšnpm
npm start

# ๆ–นๅผไบŒ๏ผš็›ดๆŽฅ่ฟ่กŒ
node index.js

# ๆ–นๅผไธ‰๏ผˆWindows๏ผ‰๏ผšPowerShell ่„šๆœฌ
.\start-server.ps1 start

Once it starts successfully, you will see:

========================================
MCP ไปฃ็†ๆœๅŠกๅ™จๅฏๅŠจๆˆๅŠŸ๏ผ
========================================
ๆœๅŠกๅ™จๅœฐๅ€๏ผšhttp://localhost:3000
็ฌฌไธ‰ๆ–น API๏ผšhttps://your-api-endpoint.com/anthropic
ๆ”ฏๆŒ็š„ๆจกๅž‹๏ผš
  - claude-3-haiku-20240229 (Claude 3 Haiku)
  - claude-3-sonnet-20240229 (Claude 3 Sonnet)
  - claude-3-opus-20240229 (Claude 3 Opus)
========================================

โš™๏ธ Configuring Augment

1. Locate the MCP config file

Windows:

%APPDATA%\Code\User\globalStorage\anthropic.augment\mcp-servers.json

macOS:

~/Library/Application Support/Code/User/globalStorage/anthropic.augment/mcp-servers.json

Linux:

~/.config/Code/User/globalStorage/anthropic.augment/mcp-servers.json

2. Write the Configuration

Copy the contents of mcp-servers.json to the file above:

{
  "mcpServers": {
    "augment-proxy": {
      "command": "node",
      "args": ["path/to/index.js"],
      "env": {
        "MCP_PORT": "3000"
      }
    }
  }
}

3. Restart VS Code

Completely close VS Code and reopen it, then wait 5โ€“10 seconds for the MCP server to load.

4. Get Started

Enter the following in Augment's chat:

use claude-3-haiku-20240229, ไฝ ๅฅฝ๏ผ่ฏท็ป™ๆˆ‘ไธ€ไธช Python Hello World ็คบไพ‹

๐Ÿงช Testing & Verification

Health Check

curl http://localhost:3000/health

Expected output:

{"status":"ok","timestamp":"2025-01-01T00:00:00.000Z"}

Fetch the Model List

curl http://localhost:3000/v1/models

Run the Test Script (Windows)

.\test-api.ps1

Confirm the Credit Savings

Compare Augment's credit balance before and after using the MCP proxy; it should not decrease.


๐Ÿ“ Project Structure

Augment-MCP-Proxy/
โ”œโ”€โ”€ README.md                  # ๆœฌๆ–‡ไปถ
โ”œโ”€โ”€ package.json               # ้กน็›ฎ้…็ฝฎ
โ”œโ”€โ”€ package-lock.json          # ไพ่ต–้”ๅฎš
โ”œโ”€โ”€ .env.example               # ็Žฏๅขƒๅ˜้‡ๆจกๆฟ
โ”œโ”€โ”€ .gitignore                 # Git ๅฟฝ็•ฅ่ง„ๅˆ™
โ”œโ”€โ”€ index.js                   # MCP ไปฃ็†ๆœๅŠกๅ™จไธปๆ–‡ไปถ
โ”œโ”€โ”€ start-server.ps1           # Windows ๅฏๅŠจ/ๅœๆญข/้‡ๅฏ่„šๆœฌ
โ”œโ”€โ”€ test-api.ps1               # API ๆต‹่ฏ•่„šๆœฌ
โ”œโ”€โ”€ mcp-servers.json           # Augment MCP ้…็ฝฎ็คบไพ‹
โ””โ”€โ”€ AUGMENT_CONFIG_GUIDE.md    # Augment ่ฏฆ็ป†้…็ฝฎๆŒ‡ๅ—

๐Ÿ”ง API Endpoints

GET /health

Health check endpoint.

Response:

{
  "status": "ok",
  "timestamp": "2025-01-01T00:00:00.000Z"
}

GET /v1/models

Retrieves the list of supported models.

Response:

{
  "object": "list",
  "data": [
    {
      "id": "claude-3-haiku-20240229",
      "object": "model",
      "created": 1735689600,
      "owned_by": "anthropic"
    }
  ]
}

POST /v1/messages

Forwards message requests to third-party APIs.

Request body:

{
  "model": "claude-3-sonnet-20240229",
  "max_tokens": 4096,
  "messages": [
    {"role": "user", "content": "Hello!"}
  ],
  "temperature": 0.7
}

๐ŸŽฏ Supported Models

Model

Speed

Quality

Cost

Best Use Cases

Haiku

โšกโšกโšก

โญโญ

Lowest

Simple questions, code completion, everyday chat

Sonnet

โšกโšก

โญโญโญโญ

Medium

General tasks, code review, recommended default

Opus

โšก

โญโญโญโญโญ

Higher

Complex problems, architecture design, deep analysis

To switch models in Augment:

use claude-3-haiku-20240229, ...
use claude-3-sonnet-20240229, ...
use claude-3-opus-20240229, ...

๐Ÿ› ๏ธ PowerShell Script Usage

# ๅฏๅŠจๆœๅŠกๅ™จ
.\start-server.ps1 start

# ๅœๆญขๆœๅŠกๅ™จ
.\start-server.ps1 stop

# ้‡ๅฏๆœๅŠกๅ™จ
.\start-server.ps1 restart

# ๆต‹่ฏ•่ฟžๆŽฅ
.\start-server.ps1 test

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Connects Roblox Studio to local AI agents via HTTP, allowing them to control Studio tools.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Connects AnythingLLM to Coolify for natural language management of self-hosted infrastructure, including diagnostics, log fetching, and deployment automation.
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Connects Claude Code to a local EverOS instance for searching and storing long-term memory, keeping data entirely on your machine.
    4
    Apache 2.0