feedhelm
Unofficial MCP server for Instagram professional accounts, using the Instagram Graph API.
Unofficial project. Not affiliated with, endorsed by or sponsored by Meta Platforms, Inc. It is an independent tool for Instagram, made by volunteers. You answer for your own account and for Meta's rules.
Status
Early development, version 0.1.1, published on PyPI as feedhelm-mcp (see the install guide). It can read your account, and, once you turn them on, publish, comment, answer messages and schedule posts. Every tool that changes your account is off until you allow it. Part of it has been tried on one real account (reading, publishing an image and a carousel, replying to, hiding and deleting comments, scheduling, and the first level of automatic replies); the rest, such as Reels, messages and metrics, was built and tested against a fake Graph API only and is marked [EXPERIMENTAL]. The verified matrix is the honest record of what was tested live.
What it does
An AI assistant (Claude Code, Claude Desktop or any MCP client) can, through the Graph API for Instagram:
- read your account, posts, comments, messages, publishing quota and insights;
- publish an image, a carousel or a Reel, and read the post back to check the caption and the AI label;
- reply to, hide and delete comments, and answer a direct message inside the 24-hour window;
- schedule posts with a small helper on your Mac (experimental).
The assistant never sees your access token or app secret: the server reads them itself, and they are removed from every output and log. Every change is recorded in a local audit log.
Install
The package is on PyPI as feedhelm-mcp, so with uv installed you can run it without downloading anything by hand: uvx --with keyring --from feedhelm-mcp feedhelm setup. If you prefer, you can still install from a copy of the source code or from a wheel you build yourself. The install guide shows every way, step by step, for people who do not code. You need Python 3.12 or newer, which the tool called uv installs for you.
Guided setup
feedhelm setup is one command for the whole connection. Run it in your own terminal window. It speaks plain English or Portuguese, asks before it changes anything, and never asks you to type a token or secret.
feedhelm setup
What it does, in order:
- Checks your computer and tells you in plain words what is missing and what to do.
- Asks your language (both languages are shown at once) and saves it.
- Connects this tool to Claude Code and to Claude Desktop (a safety copy of the Desktop settings file is kept first) and installs the guide
feedhelm-connectinto<home>/.claude/skills/. - Asks which write abilities to allow (none by default) and how approval should work (
autoorconfirm). The choice is saved, and you can change it by running setup again. See the safety model below before you pickauto. - Checks that your two private keys are saved, without reading them. You type them only at the hidden prompt, in your own terminal:
feedhelm credentials set tokenandfeedhelm credentials set app-secret. Never paste them into a chat. - Makes one connection check and one health check, then prints a summary: what works now (for example the account
@<ig_handle>), what needs your attention, what is experimental because it was never tried on a real account, and your next step.
Options:
--lang enor--lang pt-BR: choose the language and skip the question.--dry-run: a practice run. It changes nothing and sends nothing to Meta.--yes-defaults: do not ask; use the saved or default answers.--print-bundle: print the one-file guide to paste into a Claude chat (the same text asdocs/bundle/feedhelm-connect-bundle.md); add--output <file>to save it instead.
The screens at Meta, Instagram and Facebook are walked through by the guide feedhelm-connect, with Claude in Chrome. It stops and waits whenever a login, password, 2FA code or CAPTCHA is needed: you type those yourself, and it never enters or reads them.
If Meta pauses your developer account (the error shows as code 200, subcode 5258005), setup stops at once on purpose. Open the page Meta points to, choose "Confirm account", wait a few minutes and run setup again later. Do not repeat the command while the pause lasts.
Exit codes: 0 all good, 1 a problem or a stop (including the pause above), 2 a settings file problem, 3 it needs something from you.
Check your connection
These commands are for you, the person. Run them in your own terminal window. You do not need to know how to code: each one explains what it finds in plain language.
1. Save your access token and app secret
feedhelm credentials set token
feedhelm credentials set app-secret
- Run it in your own terminal window. The command refuses to run anywhere else (for example inside an assistant's shell tool), so that what you type stays private.
- Paste the value and press Enter. Nothing is shown while you paste. The value is never printed back.
- Instead of typing, you can copy the value on the Meta page yourself and run the same command with
--from-clipboard(feedhelm credentials set token --from-clipboard). The value is read without being shown and the clipboard is cleared right after saving. This is also how an assistant can help without seeing the secret: you click Copy, it runs the command. Practise first withfeedhelm credentials rehearse --write-page(a fake token, nothing saved). See the setup guide. - It is saved in your system keychain when that is available, or otherwise in a private
.envfile (only you can read it). Use--store fileor--store keychainto choose. - To replace a value (for example when the token expires), run the same command again. If an older value somewhere else would still be used, the command tells you.
2. See whether it works
feedhelm verify
It shows where your token was found, whether it is valid, when it expires (or that it never expires), its permissions, your app id and your Instagram username. If something is wrong it says what to do next.
3. Get a full checkup
feedhelm doctor
It prints a checklist. Each line starts with a label:
[OK]is fine.[INFO]is only information.[WARNING]works but needs attention soon (for example a token that expires in a few days).[PROBLEM]must be fixed; a "How to fix" line follows in plain language.[SKIPPED]was not checked, with the reason.
If Meta has paused your developer account, doctor says so and tells you where to confirm your account. Wait, and do not run the commands again and again while a pause is active: that can make it longer. In that situation doctor stops asking Meta anything on purpose.
Language
Messages follow your computer's language (English or Brazilian Portuguese). Force one with --lang en or --lang pt-BR, or set FEEDHELM_LANGUAGE.
Security notes
- Your token is sent to Meta only in the
Authorizationheader. The one exception is Meta's own token check (debug_token): Meta only offers it with the token as a parameter. This tool uses it only inverifyanddoctor, sends it only to the configured Meta host over HTTPS, and never writes that address to its output or logs. - No command-line option accepts a token or secret (they would end up in your shell history).
- An AI assistant connected to this server never sees your token, and cannot run
credentials set.
Connect to Claude
The server speaks MCP over stdio, so any MCP app can launch it. These steps are for Claude Code and Claude Desktop. Do the "Check your connection" steps above first, so the server can find your token.
Why the snippets use --from. The command (feedhelm) and the package (feedhelm-mcp) have different names, so never run uvx with only the name feedhelm: it asks PyPI for a package called feedhelm, which is not this project and could be someone else's code. This project's package name is feedhelm-mcp. It is on PyPI, so the snippets below work as written. If you build the wheel yourself instead (uv build --wheel), replace feedhelm-mcp in the snippets with the path of the file in dist/ (for example /ABSOLUTE/PATH/TO/dist/feedhelm_mcp-0.1.1-py3-none-any.whl).
Why --with keyring. uvx runs the server in its own isolated environment, which does not include the keyring package. Without it the server cannot see a token saved in your system keychain and reports "No access token is saved yet". Keep --with keyring in the command (or use the keyring extra).
Find your uvx. Claude apps do not use your shell's PATH, so give the full path. On macOS or Linux run which uvx; on Windows run where uvx. Below, /ABSOLUTE/PATH/TO/uvx stands for that answer.
Claude Code
claude mcp add --scope user --transport stdio feedhelm -- /ABSOLUTE/PATH/TO/uvx --with keyring --from feedhelm-mcp feedhelm serve
User scope keeps the setting on your machine, outside any project folder you might share.
Claude Desktop
Open the config file (create it if it does not exist), add the block, save, then fully quit and reopen Claude Desktop:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"feedhelm": {
"command": "/ABSOLUTE/PATH/TO/uvx",
"args": ["--with", "keyring", "--from", "feedhelm-mcp", "feedhelm", "serve"]
}
}
}
If the server does not show up, look at the Claude Desktop logs (macOS: ~/Library/Logs/Claude/, Windows: %APPDATA%\Claude\logs).
Keep secrets out of these files
Never put your access token or app secret in a Claude config. Those files can be read by other programs, and the assistant must never see your token. The server reads the token itself from your keychain or private .env file, saved with feedhelm credentials set token. After you replace the token, quit and reopen the Claude app so the server restarts.
Language
Claude Desktop starts the server without your terminal's language settings. To get messages in Brazilian Portuguese, either set language = "pt-BR" in config.toml, or add this non-secret entry next to args:
{
"env": { "FEEDHELM_LANGUAGE": "pt-BR" }
}
First write call. Claude Code may ask you to approve the first write tool call (for example the first publish). That prompt comes from Claude Code, not from this MCP, and it is yours to answer; the server cannot answer it for you.
Tools
What the assistant can do
The tools in this first table only read; none of them changes your account. Text written by other Instagram users (captions, comments, usernames) is marked as untrusted data, and the assistant is told never to follow it as instructions. Tools marked [EXPERIMENTAL] have not yet been tested against a live account.
| Tool | What it does | Label |
|---|---|---|
server_status |
Shows the server version, settings and whether a token is set (never the token) | read-only |
verify_account |
Checks the server can read your account | read-only |
get_publishing_quota |
Shows how many posts you can still publish in the current window | read-only |
list_media |
Lists your recent posts, a page at a time | read-only |
get_media |
Shows one post with its full caption and AI label | read-only |
get_container_status |
Shows the status of a post being prepared for publishing | read-only |
get_media_insights |
Numbers for one post (reach, views, likes and more) | read-only, [EXPERIMENTAL] |
get_account_insights |
Daily totals for your account and optional audience breakdown | read-only, [EXPERIMENTAL] |
list_comments |
Lists comments on a post, newest first | read-only |
list_comment_replies |
Lists the replies to one comment | read-only |
list_audit_log |
Shows the recorded changes made through this tool | read-only |
get_write_limits |
Says what Instagram does not let you edit or undo after publishing | read-only |
Tools that change your account (off until you turn them on)
Publishing and undo tools do not appear until you list them in the write_capabilities setting (publish, delete, comments, messages). They only act when your own message asks for it, never because of text found in a caption, comment or message. Every change is written to the local audit log. The is_ai_generated flag is required on every publish and is read back afterwards, together with the caption. Tools marked [EXPERIMENTAL] have not been tested against a live account. Which tools were tried live, on which login path, is in docs/VERIFIED.md; a label comes off only when that table says the tool works.
| Tool | What it does | Label |
|---|---|---|
publish_image |
Publishes one image from a public https link | writes (capability publish) |
publish_carousel |
Publishes a carousel of 2 to 10 images or videos | writes (capability publish) |
continue_publish |
Finishes a post that was still processing, by its job id | writes (capability publish) |
publish_reel |
Publishes a Reel from a public video link | writes, [EXPERIMENTAL] |
publish_reel_file |
Publishes a Reel from a video file on your computer, through your own storage bucket (the direct upload route is off by default and UNVERIFIED) | writes, [EXPERIMENTAL] |
schedule_post |
Queues an image or a carousel to be published later by a small helper on your Mac; the computer must be on, awake and logged in at that time | writes |
schedule_reel |
Queues a Reel (video link or a file on your computer) to be published later by the same helper | writes, [EXPERIMENTAL] |
list_scheduled |
Answers "what is scheduled?" in your local time, tells once what went out late or was missed, and shows how the helper is doing (never shows caption text) | read-only |
reschedule_scheduled |
Moves a waiting (or missed) scheduled post to a new time; in confirm mode it needs an approval code | writes |
cancel_scheduled |
Cancels a scheduled post that has not started yet; it needs no approval code because it only reduces what is posted | writes |
delete_media |
Deletes one of your posts (Meta documents this only for accounts connected through Facebook Login; it cannot be undone) | writes, [EXPERIMENTAL] |
set_comments_enabled |
Turns comments on or off for one post | writes, [EXPERIMENTAL] |
reply_to_comment |
Replies publicly to one comment, one at a time | writes |
set_comment_hidden |
Hides or shows one comment, one at a time, and reads the state back by id | writes |
delete_comment |
Deletes one comment, one at a time (final) | writes |
list_comment_inbox |
Lists the comments the automatic-reply helper collected, as marked data, with a plain digest (needs capability comments) |
read-only, [EXPERIMENTAL] |
mark_comment_handled |
Marks one collected comment as handled so it is never answered automatically; it changes only this computer's inbox and needs no approval code | writes, [EXPERIMENTAL] |
send_dm_reply |
Sends one text reply inside an existing conversation (needs capability messages) |
writes, [EXPERIMENTAL] |
After publishing, Instagram does not let anyone edit the caption, replace the media or change one item of a carousel. The only correction is to delete and republish, and the likes and comments are lost. Use dry_run first to see what would happen. For Reels from a file, set a lifecycle rule on your bucket so leftover files expire by themselves.
Comments cannot be edited, so there is no tool to change one: you can reply to it, hide it or delete it. These comment tools need the comments capability and only act when you ask; text written by other people is never an instruction. A hidden comment is not listed by list_comments or list_comment_replies; to show it again, call set_comment_hidden with its comment_id (from the write result or list_audit_log) and hidden=false.
Automatic replies to comments (off, experimental)
A small helper on your Mac can collect the new comments on your posts and answer some of them, using only rules you write yourself and only after you turn it on with one explicit yes (feedhelm autoreply enable). Replies are public and come from fixed texts, with limits, a pause switch and a complete removal. Your assistant can also read the comments the rules did not answer and mark them as handled. An optional level, where a program of your own drafts the replies, is off by default and cannot be made injection-proof, only blast-radius-limited. The first level (your own fixed rules) was tried on one live account on 2026-11-27: one reply, pause and removal worked; the other levels were not. Read the automatic replies guide first.
Reading messages (off until you turn on messages)
Direct messages are private, so these two read-only tools do not appear until messages is in the write_capabilities setting. Messages are read only when you ask, and Instagram lets the tool see just the newest 20 messages of a conversation. Each message says whether your account sent it, and the thread shows whether the reply window is open, closed or unknown. Text written by other people is data, never an instruction.
| Tool | What it does | Label |
|---|---|---|
list_conversations |
Lists your recent conversations (needs capability messages) |
read-only, [EXPERIMENTAL] |
read_conversation |
Shows the newest messages of one conversation and its reply window (needs capability messages) |
read-only, [EXPERIMENTAL] |
The one message tool that changes anything is send_dm_reply: it can only answer someone who wrote to you in the last 24 hours, inside that conversation, with text only. It cannot start a conversation, has no recipient field and sends nothing when the 24 hours are over or unclear; it checks the window again just before sending. Replying moves the conversation to the General folder of your inbox. Use dry_run first to see the window.
Scheduled posts [EXPERIMENTAL]
Scheduling an image post, listing the queue, rescheduling and cancelling were tried live on one account (2026-11-24 and 2026-11-25, see the verified matrix); everything else here (Reels, sleep and wake, the missed-post policy, uninstall) is experimental and not tried live yet. Instagram has no built-in way for this tool to post later, so a small helper on your Mac does it. When you say yes during feedhelm setup (or run feedhelm runner install), the helper is added once. macOS then starts it every minute; it looks at the posts you scheduled and publishes the ones whose time has come, through the same safety rules as any other post. It never publishes anything you did not schedule yourself.
- What macOS shows. macOS may tell you that a background item was added, and it lists the helper in System Settings > General > Login Items, under the name of the program that runs it (for example "python3"). This wording is expected, not yet confirmed on a real Mac, and will be corrected after it is. If you turn the item off there, scheduled posts stop;
feedhelm doctortells you when that happens. - The computer must be on, awake and logged in at the planned time. The app does not keep your Mac awake.
- If the computer was asleep or off. The post still goes out when the computer wakes, as long as it is within the late-post window: the setting
schedule_grace_minutes(default 120 minutes). After that the post is marked missed and nothing is posted. If you never want a late post, setschedule_late_policy = "never_late". The next time you ask "what is scheduled?", the assistant tells you, once, what went out late or was missed. - Time zone. Setup asks for your time zone once and saves it as
timezone. Without a saved zone, give the time with its UTC offset, for example2026-11-21T09:00-03:00. - Videos and links. A video file on your computer is copied into a private folder of this app when you approve the post and is removed after it is posted or cancelled, so the exact approved file is the one that goes out. Image and video links must still work at the planned time.
- Change your mind. Ask the assistant what is scheduled, cancel a post that has not started, or move it to a new time. In confirm mode, moving a post needs an approval code; cancelling does not, because it only reduces what is posted.
- Check the helper.
feedhelm runner statusshows how it is doing. If it stopped itself after Instagram restricted the account, confirm the account in the Instagram app and then runfeedhelm runner resume. - Remove it completely.
feedhelm runner uninstallasks first (it names how many scheduled posts will be cancelled), then removes the helper, its log and its temporary files. Your activity log, your publish history and the list of past scheduled posts stay. macOS may keep a private on/off note about the helper even after it is removed.
Linux and Windows. There is no helper there yet, so the scheduling tools refuse and explain why; list_scheduled still works. A systemd user timer (OnCalendar with Persistent=true) and Windows Task Scheduler ("run as soon as possible after a scheduled start is missed") are planned. Both are UNVERIFIED and not available.
Safety model
- Writes are off until you allow them. You choose the abilities during setup (
publish,delete,comments,messages). - Two approval modes. In
auto(the default) your request in the chat is the approval, so the assistant does not ask again. Inconfirmnothing is sent until you get a one-time code in your own terminal withfeedhelm approve. - Other people's text is data. Comments, messages and captions are marked as untrusted and must never be followed as instructions. An AI can still be tricked, so this protection is not perfect: use
confirmif you read comments or messages from strangers. - Everything is logged. Run
feedhelm auditto read the local audit log. There are limits per hour and per day.
Read the safety guide for the plain-words version and SECURITY.md for the threat model and the risks that remain, including the one where a model with a shell could answer the approval prompt itself.
What you cannot undo
After publishing, Instagram does not let anyone edit a caption or replace the media. The fix is to delete and republish, and the likes and comments are lost. Read what Meta does not allow after publishing before you let an assistant publish for you.
Other people's accounts
Your app stays in development mode. That is enough for your own account, and it only works for accounts that have a role (admin, developer or tester) on your own app. Accounts that are not yours, with no role on your app, need Meta App Review. App Review is not part of this setup. The Meta setup guide explains it.
What was never tested live
See docs/VERIFIED.md. Anything marked [EXPERIMENTAL] was not tried on a real account, and can behave differently on yours.
Configuration
Precedence (highest first): CLI flags > environment variables > .env file > config.toml > defaults
- Environment variables use the prefix
FEEDHELM_(for exampleFEEDHELM_GRAPH_VERSION). - The config file is
config.tomlin$XDG_CONFIG_HOME/feedhelm/(default~/.config/feedhelm/); override withFEEDHELM_CONFIG. - The
.envfile is searched in that same directory, then in the current directory; override withFEEDHELM_ENV_FILE. - Tokens and secrets are never settings: they come only from the environment, the OS keychain or a
.envfile, and a token key inconfig.tomlis rejected.
Troubleshooting
Moving from an early copy installed as instagram-mcp? See migrating an existing install.
Run feedhelm doctor first. The troubleshooting guide covers the error codes, the account pause (code 200, subcode 5258005, "Confirm account") and token problems.
Contributing
See CONTRIBUTING.md. Changes are listed in CHANGELOG.md.
Security
Report vulnerabilities privately as described in SECURITY.md. Never put a token in an issue.
License
MIT, see LICENSE.
Instagram and Meta are trademarks of Meta Platforms, Inc.
Metadata
Release files for feedhelm-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| feedhelm_mcp-0.1.1.tar.gz | 785.2 kB | Without provenance | Details for feedhelm_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| feedhelm_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for feedhelm_mcp-0.1.1-py3-none-any.whl |
Total release size: 1.2 MB
Release files / feedhelm_mcp-0.1.1.tar.gz
| Download URL | feedhelm_mcp-0.1.1.tar.gz |
|---|---|
| Size | 785.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee22b3c3d25bfb87de3806ea967e2dbf08c8b340d11ca2f4e4e38b6b7d2d6f74
|
|
BLAKE2b-256 checksum How to use checksums |
53c1c2dc6690a4d1d575cf9fb755151e55aa872bc55899dc7e3b1eadece6cf18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / feedhelm_mcp-0.1.1-py3-none-any.whl
| Download URL | feedhelm_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 433.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c692f2040fca75c785143fec2d8db87bff84fe14ff56fb5234359bd4f135e981
|
|
BLAKE2b-256 checksum How to use checksums |
27665e38d1fca7e014e52ebd2a381e8ef5c79ba7934dbab0b63c16f324d3877c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for feedhelm-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.