Beacon, database monitoring with governed AI access
Monitor your databases.
Give AI governed access.
Beacon runs scheduled SQL checks, notifies the right people and provides AI assistants with an MCP server in which every query is project-scoped, read-only, masked and audited. It runs as a standalone application or inside your ASP.NET Core host.
- .NET 10
- 9 engines
- 8 MCP tools
- MCP gateway
- PostgreSQL or SQL Server
- AGPL-3.0 or commercial
An operations layer for your data, your team and your AI assistants.
Beacon connects to PostgreSQL, SQL Server, MySQL, BigQuery, Snowflake, Databricks, Azure Synapse, CloudWatch and REST APIs. It monitors data, notifies people when a check fails, answers questions from AI assistants and, when enabled, moves data between systems.
Watch
scheduled SQLScheduled, multi-step SQL checks detect broken business rules, data-quality issues and unhealthy databases. Steps can span engines and are joined in memory.
SELECT count(*) FROM orders WHERE status = 'pending' AND created < now() - '1 day';
Alert
multi-channelResults are delivered by email with CSV or Excel attachments, Microsoft Teams, Slack, Jira or webhook. Destinations are restricted by policy, and tasks are opened and resolved automatically.
rows > 0 → Teams + Email(csv)
→ open task
rows = 0 → resolve taskServe AI
governed MCPClaude, Cursor, VS Code and other MCP clients ask questions in natural language. Beacon grounds and validates the SQL, runs it read-only, masks sensitive values and records the call. The gateway does the same for your own application’s endpoints.
ask("Which orders have been
pending for over a day?")Move
audited ETLInsert, Upsert and Truncate-Load jobs move data between engines. The feature is disabled by default, writes only to targets an Admin has designated, and can require a second approval.
orders (PostgreSQL) → warehouse.orders (Upsert)
Every query passes through the same execution gate.
MCP tools, scheduled checks, previews, AI features and saved-query tools all execute SQL through a single gate, which rejects any statement it cannot verify and reports the reason.
- 1Deployment locksRead-only execution and PII detection are enforced by host configuration and apply to Admins as well.
- 2Length & charactersOversized SQL, control characters and Unicode non-characters are rejected first.
- 3GuardrailWrite and DDL patterns are rejected after comments are removed by the dialect’s tokenizer.
- 4AST validatorStatements are parsed in the data source’s dialect. An unknown dialect is rejected.
- 5Cross-database ruleReferences to other databases, remote servers and files, USE and SET ROLE, and dynamic SQL are rejected.
- 6Row capA row limit is written into the SQL. Larger results fail or are reported as truncated.
- 7Read-only executionPostgreSQL and MySQL run each statement in a READ ONLY transaction, one statement per batch.
- 8Mask & auditPII is masked fail-closed, and every call, including refusals, is written to the audit log.
Database-level read-only enforcement is available on PostgreSQL and MySQL. On other engines, Beacon relies on the gate and a read-only login, and marks the data source accordingly. Explore security and governance →
Projects define access
Data sources are available through the projects that link them. New projects are restricted, with the creator as project admin. Users outside a project receive a 404 response.
Separation of duties
Approver, Auditor, SecurityAdmin, UserAdmin, DataSourceAdmin and MigrationOperator divide the Admin role. None of these permissions grants access to project data.
Four-eyes approvals
When enabled, changes to queries, migration jobs, Custom SQL rules and notification destinations take effect only after a second person approves the exact content.
Protected secrets
Connection strings are encrypted with AES-256-GCM, API keys are stored as SHA-256 hashes and shown once, and Data Protection keys are encrypted at rest outside Development.
Signed audit trail
Sign-ins and changes to access, keys, data sources, settings and approvals are recorded as append-only, signed events that an Auditor verifies. Every MCP call is recorded too, with the statements it ran.
Managed sessions
Sessions are revalidated on the server, expire after 12 hours and end immediately when a user’s roles change. SSO sign-in can require MFA.
Pick a goal. Hand it to your coding agent.
Every guide is written for developers and coding agents alike: an ordered checklist, every option with its default, and the decisions that need you. Each one is published as a single Markdown file that an agent reads in one request.
Claude acts as your signed-in users, through your own endpoints. No data sources, no SQL.
Add an MCP gateway to this ASP.NET Core app with Beacon. Read https://moberghr.github.io/beacon/llms-gateway.txt first and follow it step by step. Ask me before every decision it marks as one.
Monitoring, alerts, data movement and an MCP server over your databases, inside your host.
Integrate Beacon into this ASP.NET Core app. Read https://moberghr.github.io/beacon/llms-integrate.txt first and follow its checklist step by step. Use PostgreSQL for Beacon's metadata database and our existing sign-in. Ask me before every decision the guide marks as one.
Claude Code, Cursor or VS Code on a Beacon that is already running.
Connect this project's AI tooling to our Beacon at https://beacon.example.com/beacon/mcp. Read https://moberghr.github.io/beacon/cookbooks/connect-coding-agent.md and follow it. Read the API key from BEACON_MCP_API_KEY; never write it into a file.
Single sign-on, a saved query as a tool, Slack alerts, a data contract, audit to a SIEM …
Read https://moberghr.github.io/beacon/llms-cookbooks.txt, pick the recipe for: <your goal>, tell me which one you picked, then follow it step by step and show me each "Check it works" result.
/plugin marketplace add moberghr/beacon/plugin install beacon@moberg-beaconllms-gateway.txtMCP gateway guide, one filellms-integrate.txtintegration guide, one filellms-cookbooks.txtevery recipe and the prompt libraryllms.txtindex of every page and bundle~/src/acme-portal ❯ claude ✻ Welcome to Claude Code > Add an MCP gateway so our people can use this app from Claude. ● Skill(beacon-gateway) ● Fetch(llms-gateway.txt) gateway recipe · endpoint tools · docs ● Read(Program.cs, Data/Users.cs) Entra sign-in · users.object_id ● Bash(dotnet add package Moberg.Beacon.Gateway …) ● Write(Mcp/AppMcpUsers.cs) IMcpHostUserResolver by oid ● Update(Endpoints/Orders.cs) WithBeaconTool("my_orders") ● Write(Tests/McpToolTests.cs) Moberg.Beacon.Testing ? Decision required: may a tool call do what the person can do in the browser, or only read and change their own records?
Recipes that end with “it works”.
Each recipe takes one goal from nothing to a verified result, with a prompt you can hand to your agent and a table of what to do when something goes wrong.
Connect Claude Code, Cursor or VS Code
Connect AI45 minAdd Beacon to claude.ai with Entra sign-in
Your app30 minExpose an endpoint as an MCP tool, and test it
Your app25 minGround AI answers in your own docs
Embed45 minEmbed Beacon with PostgreSQL and Warp
Monitor20 minAlert Slack or Teams when a check fails
A complete interface for data owners.
A web application with light and dark themes for projects and members, data sources, the query editor, subscriptions, approvals, the Control Tower and the MCP playground.








Screenshots use sample data from Beacon's built-in mock mode (npm run dev:mock).
Three ways to start.
Clone, configure two secrets and run.
The quickest way to evaluate Beacon with your own databases. The reference host includes every connector, Warp background jobs and the full interface.
$ git clone https://github.com/moberghr/beacon $ dotnet run --project src/Beacon.SampleProjectQuick start →B · Embed in your application
Use your own host, sign-in and job runner.
Add the NuGet packages, register Beacon in Program.cs, and keep your existing identity provider, scheduler and deployment.
$ dotnet add package Moberg.Beacon.Core.PostgreSql $ dotnet add package Moberg.Beacon.UIIntegration guide →C · MCP gateway for your app
Let Claude act as your users.
Your users sign in with Microsoft Entra, your endpoints become tools that run as them, your docs ground the answers. No data sources.
$ dotnet add package Moberg.Beacon.Gateway $ dotnet tool install -g Moberg.Beacon.DoctorGateway recipe →
Governed data access for your team and your AI assistants.
Beacon is dual-licensed under the GNU AGPL v3.0 or a commercial licence without copyleft obligations. Moberg partners use it under a licence exception.