# Stowpot MCP tool reference

Use MCP to search and manage content from an assistant or an integration. Stowpot exposes the same content through MCP and the [REST API](https://cms.stowpot.com/openapi.yaml).

## Get connected

Follow [Install with AI](/docs/install-with-ai) for a setup prompt, or [REST and MCP](/docs/rest-and-mcp) for Claude Code and Codex configuration. On a default local instance, connect over Streamable HTTP at `http://127.0.0.1:8080/mcp` with a scoped bearer credential.

Start with read access. After initialization, clients can discover their available inputs with `tools/list`.

## Choose a task

### Search, write, and organize content

Use [Items and content types](/docs/mcp-items) to find an item, save or revise a draft, or define the fields that content must have.

> Find the equipment inspection notes in Stowpot and summarize the open follow-ups. Leave the notes unchanged.

### Upload or replace a file

Use [Inventory and uploads](/docs/mcp-uploads) to select storage, reserve an upload, and resume it at the committed offset.

### Read the results of file processing

Use [Processing and media access](/docs/mcp-media) for OCR, thumbnails, playback, trash, and temporary media access.

## Credentials, IDs, and pagination

An active reader can search and retrieve shared content. An editing operation requires a credential with write scope and a user with item-editing permission. Managing content types requires a credential with type-management scope and a user with the corresponding permission. Media grants additionally require an administrator and an instance with grants enabled. A credential cannot exceed the user’s current permissions.

Item, content type, asset, asset series, and grant identifiers are UUID strings. New identifiers are UUIDv7. Keep each ID in the context in which it was returned. For example, use the asset ID returned by an upload reservation when sending bytes.

List results return `next_cursor` when more results are available. Pass it as `cursor` on the next call with the original filters. Stop when `next_cursor` is absent or null.

## Errors

An MCP tool failure can arrive in an HTTP 200 response. Inspect `isError` on the tool result and read the structured Stowpot error body. HTTP authentication failures and malformed protocol requests can fail before the handler runs.

```json
{"error":{"code":"forbidden","message":"item editing is not allowed"}}
```

`invalid_field` may include the field key. On a revision `conflict`, fetch the latest revision and reconcile the change before trying again. An HTTP upload error with code `upload_offset` includes the server’s committed `uploaded_bytes` value.
