Skip to main content
Use GBrain’s MCP server to make your GBrain memory available inside MCP-aware AI clients.

Install GBrain

  1. Install the GBrain CLI:
  1. Create a local GBrain database:
  1. Verify the install:
  1. Import markdown sources you want GBrain to search:

Use a local MCP client

Use this path for clients that can start a local stdio MCP server, such as Claude Code, Cursor, Windsurf, or other local agent clients.
  1. Open your MCP client’s server configuration.
  2. Add a server named gbrain.
  3. Set the command to gbrain.
  4. Set the arguments to serve.
Use this JSON shape if your client accepts MCP server JSON:
For Claude Code, run:

Use a remote MCP connector

Use this path for clients that ask for an MCP server URL, such as Perplexity Computer, Claude Desktop remote connectors, Claude Cowork, ChatGPT connectors, or other hosted AI clients.
  1. Start the HTTP MCP server:
  1. Copy the admin bootstrap token printed by the server.
  2. Open the admin dashboard:
  1. Paste the bootstrap token to enter the dashboard.
  2. Create a client or access token for the AI client you want to connect.
  3. Expose the HTTP server with your preferred deployment or tunnel.
  4. In your AI client’s connector settings, add the GBrain MCP server URL:
  1. If the client asks for a bearer token, create one for that client:
  1. Enter the token as a bearer token or request header:
  1. Save the connector.

Use GBrain in chats

  1. Open a chat in the connected AI client.
  2. Enable or select the gbrain connector.
  3. Ask the client to search, read, or synthesize from your GBrain memory.
Example:

Connection values

For local stdio clients:
For remote HTTP clients:
GBrain also supports OAuth-based connectors for clients that require OAuth 2.1 with PKCE.