# server_info

> MCP tool returning StackQL MCP server identity and runtime

Source: https://stackql.io/mcp/server_info

Returns the StackQL MCP server's identity and runtime: version, backing SQL engine, provider registry location, server mode, and the legacy read-only flag.  Call this once at session start so the agent knows what it is connected to.

See also:
[[ MCP overview ]](/command-line-usage/mcp) [[ `list_providers` ]](/mcp/list_providers) [[ `list_registry` ]](/mcp/list_registry)

* * *

## Inputs

None.

* * *

## Output

| Renderer | Shape |
|--|--|
| KV (markdown key/value block for the LLM) | Structured payload with the fields below |

| Field | Description |
|--|--|
|`version`|StackQL build version.|
|`commit`|Git commit short hash.|
|`build_date`|RFC3339 build timestamp.|
|`platform`|`os/arch` (e.g., `linux/amd64`).|
|`transport`|`http` or `stdio`.|
|`sql_backend`|Backing SQL engine (e.g., `sqlite3`).|
|`provider_registry`|Provider registry URL.|
|`mode`|Active server mode -- `read_only`, `safe`, `delete_safe`, or `full_access`.|
|`is_read_only`|Legacy boolean flag (`true` iff `mode == read_only`).|

* * *

## Gating

Always allowed in every server mode.  Not audited as a mutation.

* * *

## Example

Try this prompt with any elicitation-capable MCP client with the StackQL MCP server registered:

```
What StackQL server am I connected to?  
Show me the version, mode, and where it pulls providers from.
```

Here's an example in Claude Desktop:
