The MCP server is currently in beta. We’d love your feedback at
contact@cubic.dev.

What you can do
Once connected, your AI assistant can:- Access AI Wikis - Query AI-generated codebase documentation containing architecture overviews, feature explanations, and code references
- Review codebase scans - List scans, inspect issues, and pull detailed findings with code context
- Inspect AI review learnings - Understand team-specific review patterns learned from feedback and scans
- Explore repositories - Discover and navigate wiki pages for any repository in your installation
- Understand codebases - Get contextual information about how systems work, design patterns, and component relationships
The MCP server requires a cubic account with access to at least one repository. You must be a
member of the repository’s installation to access its wiki, scans, and learnings.
Use cases
The MCP server supports different workflows depending on your needs:Local development
Connect your AI coding assistant (Cursor, Claude Desktop, Windsurf) to cubic for enhanced codebase understanding. Each developer generates their own API key and stores it in their personal config file — nothing needs to be committed to the repository.Internal tooling
Build internal applications that need access to codebase documentation. For example:- Customer support tools that query wiki pages to help support engineers understand product behavior
- Onboarding systems that surface relevant architecture docs for new team members
- Custom chatbots that answer questions about your codebase
Quick setup
Generate an API key
Go to Settings → Integrations → MCP Configuration and click Generate API Key.
Copy the key immediately—it’s only shown once.
API keys are personal to each user. Each team member generates their own key, which grants
access only to repositories they’re authorized to view. Don’t share keys between team members.

Configure your AI client
Add the cubic MCP server to your preferred AI coding assistant using the configuration below.
Client configuration
- Cursor
- Claude Desktop
- Claude Code
- Windsurf
- OpenCode
- VS Code
- Other
Add to
~/.cursor/mcp.json:Available tools
Wiki tools
cubic AI Wikis are AI-generated codebase documentation containing architecture overviews, feature explanations, code references, and diagrams. Use these tools to explore and understand codebases.| Tool | Description | Parameters |
|---|---|---|
list_wikis | List all wikis you have access to | search (optional) |
list_wiki_pages | List all available wiki pages for a repository | owner, repo |
get_wiki_page | Retrieve the content of a specific wiki page | owner, repo, pageRef |
- Call
list_wikisto discover repositories with generated wikis - Call
list_wiki_pagesto discover available documentation for a repository - Use
get_wiki_pagewith a page reference to read specific content
Example: Exploring a repository's wiki
Example: Exploring a repository's wiki
Ask your AI assistant:Then ask:
“List the wiki pages for the acme/backend repository”The assistant will call
list_wiki_pages and return something like:“Show me the authentication system documentation”The assistant will call
get_wiki_page with pageRef: "authentication-system" and return the full documentation.Codebase scan tools
cubic codebase scans identify security vulnerabilities, data integrity issues, business logic bugs, and stability concerns.| Tool | Description | Parameters |
|---|---|---|
list_scans | List repository scan summaries | search?, limit?, offset? |
get_scan | List aggregated issues with filters/pagination | owner, repo, category?, triageStatus?, minSeverity?, filePath?, limit?, offset? |
get_issue | Get full issue details including code context | issueId |
- Call
list_scansto discover repositories with open issue counts and latest run status - Call
get_scanwithowner/repoand optional filters to list issues - Call
get_issuefor complete details on a specific issue
limit for list_scans. Calling list_scans with no parameters returns the default first page (limit=10).
list_scans accepts only search?, limit?, and offset?. Deprecated owner/repo inputs are rejected.
list_scans returns JSON with repository summaries:
repositories: array of{ repositoryId, owner, repo, openIssueCount, lastRunAt, lastRunStatus }totalCount,hasMore,limit,offset,search
get_scan returns JSON with this envelope:
items: aggregated issue list for the requested repositorytotalCount: total filtered issues before visibility limitsvisibleCount: issues visible to the caller after plan visibility limitshasMore,limit,offsetappliedFilters,aggregationMeta
get_scan filter semantics:
minSeverityis inclusive and must be0..10filePathis a case-sensitive prefix match- Default
limitis20; server cap is100
list_scans({})list_scans({ search: "cubic" })list_scans({ search: "mrge", limit: 5, offset: 5 })(optional pagination)
Learning tools
cubic AI review learnings are team-specific code review patterns learned from senior reviewer feedback, user corrections, and codebase scans.| Tool | Description | Parameters |
|---|---|---|
list_learnings | List all AI review learnings for a repository | owner, repo |
get_learning | Get full details of a specific learning | learningId |
- Call
list_learningsto discover patterns and preferences for a repository - Call
get_learningwith a learning ID for full details and original feedback context
Troubleshooting
Connection refused or timeout errors
Connection refused or timeout errors
Verify that:
- Your API key is correct and hasn’t been revoked
- You’re using the correct endpoint:
https://www.cubic.dev/api/mcp - Your firewall or network allows outbound HTTPS connections
401 Unauthorized errors
401 Unauthorized errors
No wiki pages found
No wiki pages found
- Confirm the repository has an AI Wiki generated - Verify you have access to the
repository’s installation - Check that the
ownerandrepoparameters match the GitHub repository exactly
MCP client not recognizing the server
MCP client not recognizing the server
- Restart your AI client after updating the configuration
- Check the config file path is correct for your operating system
- Validate your JSON syntax (no trailing commas, proper quoting)
What’s next?
We’re considering adding more tools to the MCP server:- PR review tools - Access AI review comments and suggestions
- Codebase search - Search across your indexed repositories
- Analytics access - Query review metrics and team insights