Skip to main content

Prerequisites

  • Cursor installed
  • Nogic CLI installed and authenticated
  • A project initialized with nogic init

Configuration

Cursor supports MCP servers through its settings.

Step 1: Open Cursor Settings

  1. Open Cursor
  2. Press Cmd+, (Mac) or Ctrl+, (Windows/Linux)
  3. Search for “MCP” or navigate to FeaturesMCP Servers

Step 2: Add Nogic Server

Add a new MCP server with these settings:
  • Name: nogic
  • URL: https://api.nogic.dev/mcp?api_key=YOUR_API_KEY
Replace YOUR_API_KEY with your Nogic API key (starts with sk_).

Alternative: Config File

You can also edit Cursor’s config file directly. Add to your Cursor settings JSON:
{
  "mcp.servers": {
    "nogic": {
      "url": "https://api.nogic.dev/mcp?api_key=YOUR_API_KEY"
    }
  }
}

Verify Connection

After configuring, restart Cursor and open your project. The Nogic MCP server should connect automatically. To verify:
  1. Open the Cursor chat
  2. Ask: “What Nogic tools do you have access to?”
Cursor should list tools like before_writing, find_similar, etc.

Usage Examples

Intelligent Code Completion

When you start writing code, Cursor can use Nogic to:
  • Check for existing similar code
  • Follow your project’s naming conventions
  • Suggest existing utilities instead of duplicating

Ask About Your Codebase

“Find all functions related to authentication”
“What calls the processOrder function?”
“Show me the project structure”

Before Refactoring

“What would be affected if I rename getUserById to fetchUser?”

Troubleshooting

Connection Failed

  • Verify your API key is correct
  • Check that you can reach the server: curl https://api.nogic.dev/health
  • Restart Cursor after changing settings

Tools Not Working

  • Make sure .nogic/config.json exists in your project root
  • Run nogic status to verify your project is set up correctly

Slow Responses

  • First requests may be slower as the server warms up
  • Subsequent requests should be faster

Next Steps

MCP Tools Reference

Learn about all available MCP tools