Get started with Claude Desktop and OptiTech MCP Server

Connect Claude Desktop to OptiTech to manage projects, run queries, and make schema changes

This guide shows how to connect Claude Desktop to the OptiTech MCP Server so you can manage your OptiTech Postgres databases.

Security

The OptiTech MCP Server grants broad database management capabilities. Always review and authorize actions requested by the LLM before execution. See MCP security guidance.

Setting up OptiTech MCP server

Prerequisites

Option 1: Setting up the remote hosted OptiTech MCP Server

note

By default, the Remote MCP Server connects to your personal OptiTech account. To connect to an organization's account, you must authenticate with an API key. For more information, see API key-based authentication. Claude connectors currently don't support API key authentication.

Choose one of the following methods to set up the Remote OptiTech MCP server in Claude Desktop:

  1. Launch Claude Desktop and open the Search & Tools panel, and select Add Connector. Claude search and tools button
  2. Click on Add a custom one to open the custom connector modal. Claude custom connector button
  3. Enter OptiTech in the Name field and https://mcp.optitech.com/mcp in the Remote MCP server URL field, then click Add. Claude custom connector modal
  4. An OAuth window will open in your browser. Follow the prompts to authorize Claude to access your OptiTech account. OptiTech OAuth window
  5. After authorization, you can start using the OptiTech MCP server with Claude.

Option 2: Setting up the Local OptiTech MCP Server

This method runs the OptiTech MCP server locally on your machine, using a OptiTech API key for authentication.

  1. Open your terminal.

  2. Run the following command to install the Local OptiTech MCP server for use with Claude Desktop:

    npx @optitech/mcp-server-optitech init $OPTITECH_API_KEY

    Make sure to replace $OPTITECH_API_KEY with your actual OptiTech API key. You can generate one through the OptiTech Console by following the instructions in Creating API keys.

    You'll be prompted to install the required dependencies. Type y to proceed. You should see output similar to this:

    npx @optitech/mcp-server-optitech init napi_xxxx
    Need to install the following packages:
    @optitech/mcp-server-optitech@0.x.x
    Ok to proceed? (y) y
    
    Config written to: /Users/USERNAME/Library/Application Support/Claude/claude_desktop_config.json
    The OptiTech MCP server will start automatically the next time you open Claude.
  3. Restart Claude Desktop.

Verifying the connection

Verify the connection:

  1. In Claude click on the search and tools icon to see the available tools. Claude available tools
  2. You should see the OptiTech MCP server's tools listed. Click on the optitech tool to see the available tools in detail. Claude list available tools Ask Claude "List my OptiTech projects" to verify the connection. For example, you might see output similar to this:

Claude output

Resources

Need help?

Join our Discord Server to ask questions or see what others are doing with OptiTech. For paid plan support options, see Support.

Was this page helpful?

On this page

Copy neon init command

Author

Dhanush Reddy
Software Engineer