> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokencraft.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Token Resources

> Access token data through MCP resources

# Token Resources

Access design tokens through MCP resources on the hosted server.

<Note>
  Token data is exposed via `tokencraft://tokenset/{id}/tokens` on the hosted MCP server. For mode-specific listing, use the `list_tokens_by_mode` tool.
</Note>

## Resource URIs

### All Tokens in a Tokenset

```
tokencraft://tokenset/{tokenset_id}/tokens
```

Returns all tokens across all modes with resolved values.

### Pre-built Exports

```
tokencraft://tokenset/{tokenset_id}/export.json
tokencraft://tokenset/{tokenset_id}/export.css
```

Returns ready-to-use JSON or CSS exports.

## Example

```json theme={null}
{
  "tokens": [
    {
      "name": "colors.primary.500",
      "type": "color",
      "value": "#3b82f6",
      "description": "Primary brand color"
    }
  ]
}
```

## Usage in MCP clients

```
You: What colors are defined?

Assistant: [Reads tokencraft://tokenset/{id}/tokens]

           Your color tokens include...
```

## Tools vs resources

\| Filter by mode | `list_tokens_by_mode` tool |
\| Read tokenset data | `tokencraft://tokenset/{id}/tokens` resource |
\| Export iOS/Android | `export_mode` or `export_tokenset` tool |
\| Bulk import tokensets | `bulk_import` tool |

## See Also

* [Tokenset Resources](/mcp/resources/tokensets)
* [list\_tokens\_by\_mode](/mcp/tools/list-tokens-by-mode)
