Connect SixDegree to Claude
SixDegree exposes your environment's context graph as a Model Context Protocol (MCP) server. Once connected, Claude can search your entities, follow relationships, and invoke the tools your installed molecules provide. It answers questions about your real systems instead of guessing.
You need a SixDegree environment with at least one molecule installed and discovery completed. See Your First Environment. The degree CLI must be installed and authenticated (degree auth login) for the token and Claude Code steps.
Connection options
Choose the path that matches how you use Claude:
| Surface | Best for | Transport |
|---|---|---|
| Claude Code | Terminal and editor workflows | Remote (HTTP) |
| Claude.ai / Claude Desktop | Chat in browser or desktop app | Remote (HTTP) via OAuth |
| Claude Desktop (local) | Self-hosted or local platform installs | Local (stdio) |
All remote connections use the hosted MCP endpoint:
https://mcp.sixdegree.ai/mcp
Your environment is determined by the token you connect with. Each token maps to exactly one environment.
Claude Code
The fastest path. The CLI provisions an MCP-scoped token and writes the server entry into your Claude Code config (~/.claude.json) automatically:
degree claude configure
This creates a token named claude-code (scopes: access:mcp, read:users) and adds an MCP server entry pointing at your environment. Re-running the command rotates the token.
| Flag | Effect |
|---|---|
--name <name> | Change the entry name in Claude Code (default: sixdegree) |
--override | Replace an existing entry instead of erroring |
After running the command, restart Claude Code and confirm the connection:
/mcp
You should see a sixdegree server listed as connected, along with its available tools.
Manual setup
If you prefer to wire it up yourself, create a token first (see Get a token), then run:
claude mcp add --transport http sixdegree https://mcp.sixdegree.ai/mcp \
--header "Authorization: Bearer YOUR_TOKEN"
Claude.ai and Claude Desktop
Claude.ai (web) and the Claude Desktop app connect to remote MCP servers as custom connectors using browser-based OAuth sign-in. No token handling required.
- Open Settings → Connectors in Claude.
- Choose Add custom connector.
- Set the URL to
https://mcp.sixdegree.ai/mcp. - Save, then click Connect and complete the SixDegree sign-in in your browser.
Claude registers itself automatically through OAuth 2.1 dynamic client registration. After connecting, SixDegree's tools appear in the connectors menu and are available in any chat.
Custom connectors are available on Claude's paid plans. The exact menu labels vary by plan and client version.
Claude Desktop (local, stdio)
Use this path if you run SixDegree self-hosted or locally. Claude Desktop connects to a local MCP process over stdio instead of the hosted endpoint.
Step 1. Install the MCP server binary:
go install github.com/sixdegree-ai/mcp-server/cmd/mcp-server@latest
Step 2. Open Claude Desktop → Settings → Developer → Edit Config and add the server block:
{
"mcpServers": {
"sixdegree": {
"command": "mcp-server",
"args": [
"serve",
"--transport", "stdio",
"--sixdegree-url", "https://api.sixdegree.ai",
"--sixdegree-token", "YOUR_TOKEN",
"--environment-id", "YOUR_ENV_ID"
]
}
}
}
For a local platform instance, replace --sixdegree-url with http://localhost:8080.
Step 3. Restart Claude Desktop. SixDegree appears under the connectors (plug) icon.
Get a token
Create a token scoped for MCP access using the mcp scope preset:
degree token create "Claude" mcp
Copy the token value from the output. It's shown only once. To find your environment ID:
degree env list
You can also create tokens and look up environment IDs from the dashboard at app.sixdegree.ai.
Treat MCP tokens like passwords. They grant read access to your environment's entire context graph. Rotate or revoke compromised tokens immediately with degree token list and degree token delete <id>.
What Claude can do once connected
SixDegree discloses tools to Claude based on what is present in your graph. The core graph tools are always available:
| Tool | What it does |
|---|---|
search_entities | Find entities across your environment by name, type, or keyword |
get_entity | Fetch full details for a single entity |
get_entities_batch | Fetch details for multiple entities in one call |
get_entity_types | List all entity types present in your environment |
traverse_from | Follow relationships outward from an entity |
find_path | Trace the relationship path between two entities |
On top of these, tools from your installed molecules (GitHub, Slack, Kubernetes, and others) are surfaced as they become relevant to the conversation. Claude isn't flooded with every tool upfront. They're disclosed based on what entity types appear in the graph context.
Start with broad questions that let Claude orient itself before getting into specifics. SixDegree's relationship graph tends to surface connections that aren't obvious from any single system.
Try asking Claude:
Who owns the authentication service, and what depends on it?
If I change the payments API, what breaks downstream?
Which Kubernetes pods are running services owned by the platform team?
Troubleshooting
| Symptom | Fix |
|---|---|
| No SixDegree tools visible | Confirm the server is connected (/mcp in Claude Code, or check the connectors menu). Re-run degree claude configure, or verify your token is active with degree token list. |
| "Unauthorized" or sign-in loop | The token is invalid, expired, or the environment it maps to was deleted. Create a fresh token and reconnect. |
| Tools return no results | Discovery has not run or returned no data. Go to your environment in the dashboard and trigger a discovery run. See Your First Environment. |
Next steps
- Your First Chat: what good questions look like and how to interpret answers.
- Core Concepts: Entities: understand what Claude is querying.
- Add External MCP Servers: extend the toolset Claude can reach beyond SixDegree.
- Integrations: install more molecules to give Claude broader reach across your systems.
- API Tokens: manage token scopes, rotation, and revocation.