# $env/dynamic/private Definition
**Definition:** Runtime (dynamic) private environment variables
available on the server. Excludes variables with `publicPrefix` and
includes those with `privatePrefix` (if configured).
**Syntax:** `import { env } from '$env/dynamic/private'`
**Notes:**
- Server-only; cannot be imported in client code.
- In dev, includes vars from `.env`; in prod, depends on adapter.
## Example
```ts
import { env } from '$env/dynamic/private';
const secret = env.SECRET_API_KEY;
```
## Related
- `$env/static/private`, `$env/dynamic/public`
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/spences10/mcp-svelte-docs'
If you have feedback or need assistance with the MCP directory API, please join our Discord server