# pocketnook [Health: Active]

**Category:** ☁️ Cloud Platforms  
**Repository:** https://github.com/shotintoeternity/pocketnook-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 167  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pocketnook

## Description
Deploy repositories or local folders to private Pocketnook URLs from any MCP client.

## Tools
Capabilities this server exposes over MCP:

- **deploy** — Deploy a GitHub repository to a private pocketnook URL and return that URL. With no arguments it deploys the repository the current directory belongs to. pocketnook clones the tip of the default branch from GitHub, so uncommitted or unpushed work is not included — the result says so when that is the case. Redeploying the same repository reuses its existing nook and URL.
- **deploy_directory** — Deploy a directory exactly as it is on this machine to a private pocketnook URL, with no git repository required — this uploads the files from disk, including uncommitted work. Use this when there is no repository, or when the local files are what should be deployed; use `deploy` to build what is pushed to GitHub instead. Everything in the directory is sent apart from node_modules, .git and build caches, so any credentials sitting in it go too. Deploying the same nook name again replaces what is there.
- **list_nooks** — List the nooks this account has deployed: name, URL, status, and whether each is private or link-visible. Reads only — it changes nothing.
- **nook_logs** — Show the build output for a nook — the first thing to read when a deploy failed or produced the wrong thing. Reads only — it changes nothing.
- **stop_nook** — Stop serving a nook. The URL, its grants, and its secrets are kept, so deploying again brings it back.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "pocketnook": {
    "command": "npx",
    "args": ["-y","@pocketnook/mcp"],
    "env": {
      "POCKETNOOK_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `POCKETNOOK_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the pocketnook MCP server does

The pocketnook MCP server connects an MCP client to Pocketnook for private project deployment. It can build the tip of a GitHub repository's default branch or upload a local directory as it currently exists. The two deployment paths are explicit: repository deployment reflects what has been pushed, while directory deployment includes local and uncommitted files.

A successful deployment returns a private Pocketnook URL. The deployed project is initially accessible to the account owner, and sharing or secret management is handled in the browser rather than through the MCP tools.

## How it works

The server authenticates with an agent token belonging to a Pocketnook account. That token can operate on the account's own nooks, but it cannot create or revoke tokens, read a nook through its URL, or act as a viewer for another user's nook. Tokens are stored as SHA-256 hashes, expire after 90 days, and can be revoked from the account panel.

Deployments are synchronous. The request remains active while Pocketnook builds the project, and this client waits for up to 15 minutes. If the client disconnects, the build is canceled because there is no deployment queue. A build that outlasts a client-side timeout may still finish; check the deployment list before starting it again.

## Setup and configuration

Create an agent token on pocketnook.dev through the Agent access section. The required `POCKETNOOK_TOKEN` variable supplies that credential. `POCKETNOOK_URL` can replace the default `https://pocketnook.dev` base URL when using another endpoint.

The package can be launched with `npx -y @pocketnook/mcp`, or directly from a checkout with Node. Node 22.18 or newer is required, and the server has no dependencies.

## Tools and capabilities

The pocketnook MCP server exposes these tools:

- `deploy` builds a GitHub repository from the tip of its default branch and returns its private URL.
- `deploy_directory` uploads a local directory without requiring a repository. The directory must be packable with `tar`; uploads are limited to 32 MB, and `node_modules`, `.git`, and build caches are excluded.
- `list_nooks` shows the account's deployments, URLs, and statuses.
- `nook_logs` returns build output for diagnosing failed deployments.
- `stop_nook` takes a nook offline while retaining its URL, grants, and secrets.

## Limitations and notes

The server deliberately has no delete, token-management, sharing, or secret-setting tools. Deletion, sharing, and secret changes occur in the browser; stopping a nook is the reversible MCP operation.

The pocketnook MCP server cannot open a nook using its token because nook URLs require a session cookie. Apps served below `/s/:id/` can also fail when they request root-relative assets such as `/logo.png`; relative asset paths avoid that prefix issue.

`deploy_directory` refuses directories containing the user's home directory and requires `tar` on `PATH`. Build logs are marked as external output and have control characters removed, but text in a log remains untrusted content that agents should treat as data.

_Full upstream README: https://allmcps.com/mcp/pocketnook/readme_

