# $env/static/private Definition
**Definition:** Build-time (static) private environment variables
injected by Vite from `.env` and `process.env`. Excludes
`publicPrefix` and includes `privatePrefix` (if configured).
**Syntax:** `import { NAME } from '$env/static/private'`
**Notes:**
- Values are statically replaced at build time; enables dead code
elimination.
- Declare all referenced variables (even if empty) to avoid undefined
at build.
## Example
```ts
import { API_KEY } from '$env/static/private';
```
## Related
- `$env/dynamic/private`, `$env/static/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