Skip to main content

MCP Server

BaseLayer exposes your knowledge graph via MCP (Model Context Protocol). Any MCP-compatible client can connect to search, store, and recall your knowledge. The easiest way to connect any MCP client to BaseLayer is via OAuth. No API keys needed.

Remote MCP (Claude.ai, ChatGPT, etc.)

For cloud-based AI tools that support remote MCP:
  1. In your AI tool’s settings, add a new MCP integration
  2. Enter the server URL:
  3. You’ll be redirected to BaseLayer to sign in and authorize the connection
  4. Click Allow — done

CLI tools (Claude Code, Gemini CLI, etc.)

CLI-based tools connect to the remote MCP endpoint via SSE:

IDE tools (Cursor, Windsurf, Copilot)

Add BaseLayer to your IDE’s MCP configuration file:
See specific setup guides:

Available tools

Once connected, your AI can use these tools:

Querying

Searching

Writing

OAuth scopes

MCP clients are granted the mcp:tools scope by default, which provides access to all available tools.

Verify the connection

Ask your AI:
“What do you know about me?”
It should call ask_question and return knowledge from your memory.
OAuth is recommended for most users. Only use API keys for custom integrations or self-built MCP clients.
  1. Go to baselayer.id/credentials
  2. Click Create API Key
  3. Copy the key and configure your MCP client:
API keys are for advanced integrations. OAuth is simpler and more secure for standard MCP clients.