Skip to main content
With MCP (Model Context Protocol), your AI assistant connects directly to your AstroBee data layers. Explore schemas, run SQL, and get insights without leaving Claude Code, Claude Desktop, or VS Code. MCP is an open standard that lets AI assistants securely connect to external tools and data sources. AstroBee’s MCP server gives your assistant read access to your data layers and the ability to execute queries on your behalf.

Managing Connections

Access MCP settings via SettingsMCP tab:
MCP settings
The MCP page shows:
  • Authorized Applications — Apps currently connected to your account
  • Setup Instructions — Configuration for different AI clients
  • Security Information — How your data is protected

Quick Setup

  1. Run this command in your terminal:
claude mcp add astrobee --transport http https://app.astrobee.ai/api/mcp
  1. In Claude Code, type /mcp and select “Authenticate”
  2. Sign in with your AstroBee account in the browser
Learn more about MCP in Claude Code.

Available Tools

Once connected, your AI assistant has access to 12 tools:

Server & Model Discovery

ToolDescription
server-statusCheck server health and connection statistics
list-ontologiesList all data layers you have access to
list-source-modelsGet raw data schemas linked to a data layer

Entity & Property Exploration

ToolDescription
list-entitiesList all entities with metadata (optionally with row counts)
list-propertiesGet all properties for a specific entity
describe-propertyGet detailed info about a property (type, dimension/measure)
list-relationshipsView how entities are connected

Statistics & Data Quality

ToolDescription
list-entity-statsGet entity metrics (row count, property counts, quality scores)
list-property-statsGet property statistics (uniqueness, null %, distinct counts)

SQL Execution

ToolDescription
get-datasource-typeGet the database engine for correct SQL syntax
validate-sqlCheck if a SQL query is valid without executing
execute-sqlRun a SQL query and get results (up to 1000 rows)
For editing data layers, use the AstroBee web interface. MCP tools are read-only to maintain data layer consistency.

Security

  • OAuth 2.0 — Secure authorization flow
  • Scoped Access — Tools only access data you’ve authorized
  • Revocable — Remove access anytime from Settings → MCP
  • Audit Logged — All queries are logged for security

Revoking Access

To disconnect an authorized application:
  1. Go to SettingsMCP
  2. Find the application in the Authorized Applications list
  3. Click Revoke
The application immediately loses access to your data.

Next Steps

Claude Desktop Tutorial

Detailed setup guide for Claude Desktop

VS Code Tutorial

Query data layers from VS Code