# How to integrate Threads MCP with Atomic Agent

```json
{
  "title": "How to integrate Threads MCP with Atomic Agent",
  "toolkit": "Threads",
  "toolkit_slug": "threads",
  "framework": "Atomic Agent",
  "framework_slug": "atomic-agent",
  "url": "https://composio.dev/toolkits/threads/framework/atomic-agent",
  "markdown_url": "https://composio.dev/toolkits/threads/framework/atomic-agent.md",
  "updated_at": "2026-10-25T05:35:47.201Z"
}
```

## Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,500+ apps through Composio, including Threads.
This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a Threads account. See the [Atomic Agent documentation](https://atomicagent.io/docs/?cta_placement=atomic-agent-docs) for installation instructions.

## Also integrate Threads with

- [ChatGPT](https://composio.dev/toolkits/threads/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/threads/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/threads/framework/hermes-agent)

## TL;DR

### How Atomic Agent connects to Threads
Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.
Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

## Connect Threads to Atomic Agent

### Connect Threads to Atomic Agent
- Sign up or sign in to the [Composio dashboard](https://dashboard.composio.dev/?cta_placement=atomic-agent-api-key). Copy your API key.
- In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
- Ask Atomic Agent to do something in Threads. It searches Composio for the right tool.
- On first use, open the sign-in link returned in the chat. Connect your Threads account, then return to Atomic Agent to continue.
### Headless setup
Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

```bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY
```

## What is the Threads MCP server, and what's possible with it?

The Threads MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Threads account. It provides structured and secure access to publishing, replies, public content, profile details, and performance insights, so your agent can publish posts, manage conversations, discover content, and analyze engagement on your behalf.
- Post publishing and sharing: Have your agent publish text, image, video, carousel, quote, poll, ghost, GIF, or text-attachment posts, and optionally share them as Instagram Stories.
- Conversation management: Let the agent reply to posts, list replies and mentions, review pending replies, and hide or unhide replies on posts you manage.
- Public content discovery: Direct your agent to search posts by keyword or topic tag, look up public profiles, browse their posts, and find locations for post tagging.
- Profile and post analytics: Instruct your agent to retrieve profile insights, post engagement metrics, publishing limits, and your profile details.
- Content maintenance: Have your agent list your posts, replies, ghost posts, and reposts, then delete posts or repost content when needed.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `THREADS_CREATE_AND_SHARE_POST` | Create and Share Post | Create and publish a top-level Threads post and cross-share it to the linked Instagram account as a Story. Returns crossreshare_to_ig_status to report whether the Story cross-share succeeded independently of Threads publication. |
| `THREADS_CREATE_POST` | Create Post | Create and publish a top-level Threads text, image, video, carousel, quote, poll, ghost, GIF, or text-attachment post, optionally with a location tag. |
| `THREADS_CREATE_REPLY` | Create Reply | Create and publish a reply to a Threads post, including a text, image, video, carousel, quote, poll, GIF, or text-attachment reply. |
| `THREADS_DELETE_POST` | Delete Post | Permanently delete a Threads post owned by the connected profile. |
| `THREADS_GET_LOCATION` | Get Location | Retrieve one Threads location by ID for inspection or post tagging. |
| `THREADS_GET_MY_PROFILE` | Get My Profile | Return the connected or app-scoped Threads user's profile and identity fields. |
| `THREADS_GET_POST` | Get Post | Retrieve one Threads post by ID. Third-party posts may be unavailable until the Meta app has advanced access. |
| `THREADS_GET_POST_EMBED` | Get Post Embed | Return embeddable HTML and oEmbed metadata for a public Threads post. |
| `THREADS_GET_POST_INSIGHTS` | Get Post Insights | Return selected lifetime engagement metrics for one post owned by the connected Threads profile. |
| `THREADS_GET_PROFILE_INSIGHTS` | Get Profile Insights | Return one time-window page of selected profile time-series, totals, link clicks, follower counts, or follower demographics for a Threads profile. |
| `THREADS_GET_PUBLISHING_LIMITS` | Get Publishing Limits | Return current usage and configured quota for Threads posts, replies, deletes, location searches, or all publishing categories. |
| `THREADS_LIST_GHOST_POSTS` | List Ghost Posts | List active and archived ghost posts created by the connected Threads profile, one cursor page at a time. |
| `THREADS_LIST_MY_MENTIONS` | List My Mentions | List public Threads posts that mention the connected profile, one cursor page at a time. With development access, Threads may return only mentions made by app testers, so an empty page does not prove that no public mentions exist. |
| `THREADS_LIST_MY_POSTS` | List My Posts | List posts created by the connected Threads profile, one cursor page at a time. |
| `THREADS_LIST_MY_REPLIES` | List My Replies | List replies created by the connected Threads profile, one cursor page at a time. |
| `THREADS_LIST_PENDING_REPLIES` | List Pending Replies | List one page of pending or ignored replies for an owned Threads post. The post must have been created with reply approvals enabled. |
| `THREADS_LIST_POST_REPLIES` | List Post Replies | Return either immediate replies or the flattened full conversation for a Threads post, one cursor page at a time. |
| `THREADS_LIST_PUBLIC_PROFILE_POSTS` | List Public Profile Posts | List one cursor page of posts from a qualifying public Threads profile by exact username. Standard or unreviewed app access is restricted to selected official Meta accounts, and returned post IDs may not support direct retrieval until the app has advanced access. |
| `THREADS_LOOKUP_PUBLIC_PROFILE` | Lookup Public Profile | Look up a qualifying public Threads profile by exact username. Profiles generally need at least 100 followers, and standard or unreviewed app access is restricted to selected official Meta accounts. |
| `THREADS_REPOST_POST` | Repost Post | Repost an existing Threads post to the connected profile; this creates a visible post. |
| `THREADS_REVIEW_PENDING_REPLY` | Review Pending Reply | Approve or ignore one pending reply; an ignored reply can later be approved. |
| `THREADS_SEARCH_LOCATIONS` | Search Locations | Search Threads locations by text, coordinates, or both. Returns the provider-ranked unpaginated result set. |
| `THREADS_SEARCH_POSTS` | Search Posts | Search one page of Threads posts by keyword or topic tag. Broader public results require Meta advanced access, so an empty page may reflect app-review limits rather than no public matches. |
| `THREADS_SET_REPLY_VISIBILITY` | Set Reply Visibility | Hide or unhide a top-level reply and its nested replies on a post managed by the connected profile. |

## Supported Triggers

None listed.

## Troubleshooting

### Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

### Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

### Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See [Composio pricing](/pricing) for the current limits that apply to your connection.

## Complete Code

None listed.

## Conclusion

### Use Threads from Atomic Agent
With your account connected, ask Atomic Agent to work with Threads in natural language. You can connect more apps through the same Composio integration as you need them.
Visit the [Atomic Agent website](https://atomicagent.io/?cta_placement=atomic-agent-site) or inspect the [Atomic Agent source code](https://github.com/AtomicBot-ai/atomic-agent?cta_placement=atomic-agent-repo).

## How to build Threads MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/threads/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/threads/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/threads/framework/hermes-agent)

## Related Toolkits

- [Twitter](https://composio.dev/toolkits/twitter) - Twitter is a social media platform for sharing real-time updates, conversations, and news. Stay connected, informed, and engaged with communities worldwide.
- [Instagram](https://composio.dev/toolkits/instagram) - Instagram is a social platform for sharing photos, videos, and stories with your audience. It helps brands and creators engage, grow, and analyze their online presence.
- [Ayrshare](https://composio.dev/toolkits/ayrshare) - Ayrshare is a Social Media API for managing, automating, and analyzing posts across multiple platforms. It helps you streamline social media workflows and centralize analytics.
- [DEV Community](https://composio.dev/toolkits/devto) - DEV Community (dev.to) is a social publishing platform for software developers. Use it to share technical articles, grow a developer audience, and join community discussions.
- [Dotsimple](https://composio.dev/toolkits/dotsimple) - Dotsimple is a social media management platform for planning, creating, and publishing content. It helps teams boost their reach with AI-powered content generation and actionable analytics.
- [Just One API](https://composio.dev/toolkits/just_one_api) - Just One API is a unified platform providing public social, creator, entertainment, and ecommerce data. Use it to query standardized, metered datasets across hundreds of endpoints for research and product insights.
- [Pinterest](https://composio.dev/toolkits/pinterest) - Pinterest is a visual discovery platform for recipes, home ideas, style inspiration, travel plans, and more. It helps people save, organize, and revisit ideas through Pins and Boards.
- [Strava](https://composio.dev/toolkits/strava) - Strava is a social fitness network and app for cyclists and runners. It's perfect for tracking workouts, sharing progress, and joining active communities.
- [TikHub](https://composio.dev/toolkits/tik_hub) - TikHub is a social metadata API that exposes supported TikTok and social metadata routes. It provides consistent, API-key-based access to public metadata without cookies or device signatures.
- [Tiktok](https://composio.dev/toolkits/tiktok) - Tiktok is a short-form video platform for creating, sharing, and discovering viral content. It helps creators and brands reach massive audiences with creative tools and global social features.
- [Twitch](https://composio.dev/toolkits/twitch) - Twitch is a live streaming platform for gamers, creators, and communities. It enables real-time interaction, monetization, and community building.
- [TwitterShots](https://composio.dev/toolkits/twittershots) - TwitterShots is an API service that renders public X posts as clean screenshots and retrieves tweet content. Use it to capture social posts, extract tweet text, and track API usage without building screenshot infrastructure.
- [Upload-Post](https://composio.dev/toolkits/upload_post) - Upload-Post is a social publishing API for posting, scheduling, and managing content across social networks. Use it to run multi-channel content workflows through one clean API instead of separate platform integrations.
- [Gmail](https://composio.dev/toolkits/gmail) - Gmail is Google's email service with powerful spam protection, search, and G Suite integration. It keeps your inbox organized and makes communication fast and reliable.
- [Google Calendar](https://composio.dev/toolkits/googlecalendar) - Google Calendar is a time management service for scheduling meetings, events, and reminders. It streamlines personal and team organization with integrated notifications and sharing options.
- [Google Drive](https://composio.dev/toolkits/googledrive) - Google Drive is a cloud storage platform for uploading, sharing, and collaborating on files. It's perfect for keeping your documents accessible and organized across devices.
- [Outlook](https://composio.dev/toolkits/outlook) - Outlook is Microsoft's email and calendaring platform for unified communications and scheduling. It helps users stay organized with powerful email, contacts, and calendar management.
- [Google Sheets](https://composio.dev/toolkits/googlesheets) - Google Sheets is a cloud-based spreadsheet tool for real-time collaboration and data analysis. It lets teams work together from anywhere, updating information instantly.
- [Supabase](https://composio.dev/toolkits/supabase) - Supabase is an open-source backend platform offering scalable Postgres databases, authentication, storage, and real-time APIs. It lets developers build modern apps without managing infrastructure.
- [Composio](https://composio.dev/toolkits/composio) - Composio is an integration platform that connects AI agents with hundreds of business tools. It streamlines authentication and lets you trigger actions across services—no custom code needed.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Threads MCP?

With a standalone Threads MCP server, the agents and LLMs can only access a fixed set of Threads tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Threads and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Atomic Agent?

Yes, you can. Atomic Agent fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Threads tools.

### Can I manage the permissions and scopes for Threads while using Tool Router?

Yes, absolutely. You can configure which Threads scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Threads data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
