Resources

Resources

Your agent provisions databases and infrastructure resources through MCP — connection credentials in seconds

Resources are managed infrastructure that your agent provisions through MCP tools. No manual setup, no dashboard clicking — your agent creates a database and gets connection credentials back immediately.

Available resources

How resources work

Your agent provisions resources using MCP tools. Each resource gets:

  • A connection URL for your service to connect (e.g., libsql://your-db.turso.io)
  • An auth token for secure access
  • Metadata like size, region, and hostname

Credentials are encrypted at rest and only accessible through MCP. Your agent passes them to services as environment variables.

Example: database + service in one prompt

Prompt

Create a FastAPI backend with a SQLite database. Store bookmarks with title, URL, and tags.

Your agent will:

  1. Call create_resource(name="bookmarks_db", type="sqlite") — gets database_url and auth_token
  2. Write the FastAPI app with libsql client
  3. Call create_service with DATABASE_URL and DATABASE_AUTH_TOKEN as env vars
  4. Return a live URL

Managing resources

MCP ToolDescription
create_resourceProvision a new database
list_resourcesList all provisioned resources
get_resourceGet connection URL and auth token
delete_resourcePermanently delete a resource

See Resource Tools for full parameter reference.

On this page