# create_site_database

Source: https://modulify.ai/docs/mcp/database/create-site-database

Gives a site a database if it does not have one yet.

- Title: Create the site database
- Scope: `data:write`
- Access: Makes changes

This is what turns a site with no data layer into one that can hold collections. Calling it on a site that already has a database is harmless and reports the one that is there, so it is safe to call before any other data tool. `created` says whether this call made the database.

The database is ready as soon as the call returns, so the other data tools can use it straight away.

As with `get_site_database`, the database address and token are never returned. See [Getting a database](https://modulify.ai/docs/data/databases#getting-a-database).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |