Vibe Check MCP server

The definitive Vibe Coder's sanity check MCP server: Upgrade your agent with self-aware oversight.
Back to servers
Setup instructions
Provider
PV Bhat
Release date
Mar 22, 2025
Language
TypeScript
Stats
320 stars

Vibe Check MCP is a server implementing Anthropic's Model Context Protocol (MCP) that helps keep AI agents on track by providing meta-cognitive feedback. It acts as a "mentor layer" that interrupts agents when they're about to go down problematic paths, preventing over-engineering and keeping them aligned with user intentions.

Installation Options

Quick Start with npx

You can run the server directly using npx without a local installation. This requires Node.js version 20 or higher.

Option 1: STDIO Transport (for MCP-aware clients)

npx -y @pv-bhat/vibe-check-mcp start --stdio

When successful, you'll see [MCP] stdio transport connected indicating the process is waiting for client connections.

Add this configuration to your MCP-aware client (Claude Desktop, Cursor, etc.):

{
  "mcpServers": {
    "vibe-check-mcp": {
      "command": "npx",
      "args": ["-y", "@pv-bhat/vibe-check-mcp", "start", "--stdio"]
    }
  }
}

Option 2: HTTP Transport (for manual testing/integration)

npx -y @pv-bhat/vibe-check-mcp start --http --port 2091

You can verify the service is running with:

curl http://127.0.0.1:2091/health

For API interactions, send JSON-RPC requests to http://127.0.0.1:2091/rpc.

Client Configuration

Vibe Check MCP supports several MCP-aware clients:

Claude Desktop

The server can be installed to Claude Desktop's configuration:

npx -y @pv-bhat/vibe-check-mcp install --client claude

Remember to restart Claude Desktop after installation for changes to take effect.

Cursor

For the Cursor editor:

npx -y @pv-bhat/vibe-check-mcp install --client cursor

If your config is in a non-standard location, specify it:

npx -y @pv-bhat/vibe-check-mcp install --client cursor --config /path/to/mcp.json

Windsurf (Cascade)

npx -y @pv-bhat/vibe-check-mcp install --client windsurf --http

The --http flag is recommended for Windsurf as it uses HTTP transport by default.

Visual Studio Code

npx -y @pv-bhat/vibe-check-mcp install --client vscode --config .vscode/mcp.json

If you don't specify a config path, the command will display a JSON snippet and a vscode:mcp/install link you can use directly.

Environment Configuration

Create a .env file with API keys for the LLM providers you plan to use:

# Gemini (default)
GEMINI_API_KEY=your_gemini_api_key

# Optional providers
OPENAI_API_KEY=your_openai_api_key
OPENROUTER_API_KEY=your_openrouter_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key

# Optional overrides
DEFAULT_LLM_PROVIDER=gemini  # accepts: gemini | openai | openrouter | anthropic
DEFAULT_MODEL=gemini-2.5-pro

Core MCP Tools

Vibe Check MCP provides these key tools that agents can call:

vibe_check

The primary tool for reflection and oversight. Call it before taking significant actions:

// Example agent call
await tools.vibe_check({
  task: "Optimize the database schema",
  plan: "I'll modify the schema directly in production",
  taskContext: "User asked for performance improvements"
});

vibe_learn

Optional tool to log mistakes and fixes for future reference:

// Example agent call
await tools.vibe_learn({
  sessionId: "user-session-123",
  mistake: "Attempted to modify production database directly",
  resolution: "Created migration script and staging test first"
});

Constitution Management

Set rules for a specific session that the CPI layer will enforce:

// Set/update rules
await tools.update_constitution({
  sessionId: "user-session-123",
  rules: ["never write secrets to disk", "prefer unit tests before refactors"]
});

// Check current rules
const constitution = await tools.check_constitution({ 
  sessionId: "user-session-123" 
});

// Reset rules
await tools.reset_constitution({ 
  sessionId: "user-session-123" 
});

Integration Best Practices

To get the most from Vibe Check, include instructions in your agent's system prompt:

As an autonomous agent you will:
1. Call vibe_check after planning and before major actions.
2. Provide the full user request and your current plan.
3. Optionally, record resolved issues with vibe_learn.

The research shows optimal "interrupt dosage" is about 10-20% of the agent's processing steps. Focus on calling vibe_check at key decision points rather than for every minor action.

Uninstalling

To remove Vibe Check MCP from a client configuration:

  1. Restore the backup file (*.bak) created during installation, or
  2. Manually edit the client configuration to remove the vibe-check-mcp entry

Each client configuration will have entries tagged with "managedBy": "vibe-check-mcp-cli" for easy identification.

AI Agent

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "vibe-check" '{"command":"node","args":["/path/to/vibe-check-mcp/build/index.js"],"env":{"GEMINI_API_KEY":"YOUR_GEMINI_API_KEY"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "vibe-check": {
            "command": "node",
            "args": [
                "/path/to/vibe-check-mcp/build/index.js"
            ],
            "env": {
                "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "vibe-check": {
            "command": "node",
            "args": [
                "/path/to/vibe-check-mcp/build/index.js"
            ],
            "env": {
                "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later