# threads-mcp-cli MCP server

> Enables AI agents and CLI users to manage Threads accounts through posting, replying, analyzing insights, and searching for content.

- Repository: https://github.com/thenavidm/threads-mcp-cli
- Page: https://hostedmcp.org/servers/thenavidm/threads-mcp-cli
- Transport: —
- Stars: 4
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `THREADS_ACCOUNTS` | no | no |  |
| `THREADS_ALLOW_DESTRUCTIVE` | no | no |  |
| `THREADS_APP_ID` | no | no |  |
| `THREADS_APP_SECRET` | no | no |  |
| `THREADS_AUDIT_LOG` | no | no |  |
| `THREADS_DEFAULT_ACCOUNT` | no | no |  |
| `THREADS_HTTP_PORT` | no | no |  |
| `THREADS_HTTP_TOKEN` | no | no |  |
| `THREADS_READ_ONLY` | no | no |  |

## Tools (30)

- `list_accounts`
- `whoami`
- `get_publishing_limit`
- `refresh_token`
- `create_post`
- `create_thread`
- `create_carousel`
- `stage_post`
- `publish_staged`
- `get_container_status`
- `quote_post`
- `repost`
- `delete_post`
- `reply_to`
- `get_replies`
- `get_conversation`
- `get_all_replies`
- `hide_reply`
- `get_pending_replies`
- `manage_pending_reply`
- `get_posts`
- `get_post`
- `get_post_insights`
- `get_account_insights`
- `get_follower_demographics`
- `get_top_posts`
- `search_keyword`
- `search_topic_tag`
- `lookup_profile`
- `list_allowlisted_countries`

## FAQ

### Does the server require credentials in the configuration file?

No, credentials are not stored in the config file because the login command stores a refreshable token locally.

### How long does the Threads access token last?

The token is valid for 60 days and is designed to refresh itself automatically.

### Are there safety measures for posting content?

Yes, publishing, replying, and deleting actions require confirmation to prevent accidental posts.
