Skip to content

Open source. MIT licensed.

Your APIs. Ready for agents.

Turn API definitions into MCP tools. Generate typed tools, define execution policies, and trace calls, all in one codebase you can run and change.

Built by Riza and Aditya. Now yours to build on.

scroll

OpenAPI, Google Discovery, GraphQL and MCP in. Typed, governed agent tools out.

  • openapi
  • graphql
  • google discovery
  • mcp
  • typescript
  • python
  • cli
  • mit licensed
  • typed tools
  • explicit policies
  • traced calls
  • self-hostable
  • zero lock-in

start small

One spec. Three tools.

The offline example generates tools from a Notes API definition and validates their policies. No account, database, or API key needed.

Explore the example
quick_start.sh
QUICK STARTNode.js 22.18+
git clone https://github.com/codewithriza/astrail.git
cd astrail
npm ci
npm run demo:offline
  • notes_list_notesallow
  • notes_create_noteapproval
  • notes_delete_noteblock

No upstream calls executed.

  1. level 01locked

    stage: generate

    Start with your API.

    Import OpenAPI, Google Discovery, GraphQL, or an existing HTTP MCP server.

  2. level 02locked

    stage: control

    Make calls explicit.

    Endpoint maps, authentication, approvals, and network policies govern execution.

  3. level 03locked

    stage: build

    Take it from here.

    A dashboard, CLI, TypeScript and Python clients, and the source to extend them.

ready to ship?

let's talk!

Questions about the code, an API you want to turn into tools, or a deployment you are planning? Send us a note and a real human reads it.

readme.md

The code is open. The docs are here.

Start with the offline example, then configure your own deployment. Persistent operation needs backend and authentication setup.

new_message.exe
i am a
interested in (optional)

We only use your details to reply to you. No newsletters, no spam.