Skip to main content

Table of Contents


Claude Code

1. Add the MCP server

Run the following command in your terminal.
claude mcp add --transport http lnar https://api.lnar.ai/mcp/

2. Authentication

  1. Launch Claude Code
  2. Run the /mcp command
  3. Select lnar and click Authenticate
  4. Your browser will open automatically — sign in via the Dashboard using GitHub or Google
  5. Click Allow on the consent screen
  6. Connection complete

Claude.ai and Claude for Desktop

Setup instructions for Claude.ai and Claude for Desktop are coming soon. In the meantime, use the Claude Code configuration above if you need to connect to the Lnar MCP server today.

ChatGPT

Custom connectors using MCP are available on ChatGPT for Pro and Plus accounts on the web.

1. Add the MCP server

  1. Enable Developer mode:
    • Go to SettingsConnectorsAdvanced settingsDeveloper mode
  2. Open ChatGPT Settings
  3. In the Connectors tab, click Create to add a new connector:
    • Name: Lnar
    • MCP server URL: https://api.lnar.ai/mcp/
    • Authentication: OAuth
  4. Click Create

2. Authentication

The Lnar connector will appear in the composer’s Developer mode tool during conversations. Click it to sign in via the Dashboard using GitHub or Google and complete the OAuth flow.

Codex

1. Add the MCP server

Run the following commands in your terminal.
# Install Codex
npm i -g @openai/codex

# Add Lnar MCP
codex mcp add lnar --url https://api.lnar.ai/mcp/

# Start Codex
codex

2. Authentication

When adding the MCP server, Codex will detect OAuth support and open your browser automatically — sign in via the Dashboard using GitHub or Google, then click Allow on the consent screen.

VS Code

1. Add the MCP server

Create or edit .vscode/mcp.json in your project root.
.vscode/mcp.json
{
  "servers": {
    "lnar": {
      "url": "https://api.lnar.ai/mcp/"
    }
  }
}

2. Authentication

  1. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Run MCP: List Servers
  3. Select lnar and click Authenticate
  4. Your browser will open automatically — sign in via the Dashboard using GitHub or Google
  5. Click Allow on the consent screen
  6. Connection complete