# --mcp-local-server-resource-directory

Source: https://zshot-cli.com/reference/flags/agents/mcp-local-server-resource-directory/
Markdown: https://zshot-cli.com/reference/flags/agents/mcp-local-server-resource-directory/index.md
Section: [Reference](https://zshot-cli.com/reference/) › [Flags](https://zshot-cli.com/reference/flags/) › [Agents](https://zshot-cli.com/reference/flags/agents/)
CLI: `--mcp-local-server-resource-directory` · REST: CLI only
Value: `PATH` · Default: `~/Downloads/zshot-mcp-resources`
License: [Pro](https://zshot-cli.com/support/licenses/pro)

Sets where [`--mcp-local-server`](/reference/flags/agents/mcp-local-server) writes the files it returns as resource links: PDFs, video, archives and large images. Point it at a directory the agent can read. ZShot creates the directory on first write, and falls back to its temporary directory if it cannot.

A render's summary names the file's path, and ZShot leaves the files in place when it exits.

## Example

**CLI**

```sh
zshot --mcp-local-server --mcp-local-server-resource-directory ~/agent-workspace/zshot
```

## Related

Flags:

- [`--mcp-local-server`](https://zshot-cli.com/reference/flags/agents/mcp-local-server/)

Topics:

- [MCP](https://zshot-cli.com/reference/agents/mcp/)

## Navigation

- [Examples](https://zshot-cli.com/examples/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
  - [Formats](https://zshot-cli.com/reference/formats/)
  - [Flags](https://zshot-cli.com/reference/flags/)
    - [Common](https://zshot-cli.com/reference/flags/common/)
    - [Agents](https://zshot-cli.com/reference/flags/agents/)
      - [--agent-help](https://zshot-cli.com/reference/flags/agents/agent-help/)
      - [--install-skill](https://zshot-cli.com/reference/flags/agents/install-skill/)
      - [--mcp-local-server](https://zshot-cli.com/reference/flags/agents/mcp-local-server/)
      - **--mcp-local-server-resource-directory**
    - [Archive](https://zshot-cli.com/reference/flags/archive/)
    - [Browser](https://zshot-cli.com/reference/flags/browser/)
    - [Diagnostics](https://zshot-cli.com/reference/flags/diagnostics/)
    - [Document](https://zshot-cli.com/reference/flags/document/)
    - [Image](https://zshot-cli.com/reference/flags/image/)
    - [Navigator](https://zshot-cli.com/reference/flags/navigator/)
    - [Security](https://zshot-cli.com/reference/flags/security/)
    - [Server](https://zshot-cli.com/reference/flags/server/)
    - [Video](https://zshot-cli.com/reference/flags/video/)
  - [Agents](https://zshot-cli.com/reference/agents/)
  - [Configuration](https://zshot-cli.com/reference/configuration/)
  - [Crawling](https://zshot-cli.com/reference/crawling/)
  - [Devices](https://zshot-cli.com/reference/devices/)
  - [Docker](https://zshot-cli.com/reference/docker/)
  - [Exit Codes](https://zshot-cli.com/reference/exit_codes/)
  - [Linux](https://zshot-cli.com/reference/linux/)
  - [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
  - [npm](https://zshot-cli.com/reference/npm/)
  - [LLM Formatting](https://zshot-cli.com/reference/llm_formatting/)
  - [Local Inputs](https://zshot-cli.com/reference/inputs/)
  - [Navigator](https://zshot-cli.com/reference/navigator/)
  - [Security](https://zshot-cli.com/reference/security/)
  - [Server](https://zshot-cli.com/reference/server/)
  - [Shell completions](https://zshot-cli.com/reference/shell_completions/)
  - [Storage](https://zshot-cli.com/reference/storage/)
  - [Timeouts](https://zshot-cli.com/reference/timeouts/)
  - [Web Bot Auth](https://zshot-cli.com/reference/web_bot_auth/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

