Meta Graph
by pipeworx-io
README.md
# @pipeworx/meta-graph
Facebook Page profiles and posts, and Instagram business and creator profiles and posts, from Meta's Graph API (Meta, Graph API).
Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 2100+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
## Tools
- `meta_graph_facebook_page` -- name, about, category, likes, followers, verification status, website, page link, picture and cover URLs for a Page ID or username.
- `meta_graph_facebook_posts` -- a Page's posts, newest first: post ID, text, permalink, created time, reaction, comment and share counts, with a paging cursor.
- `meta_graph_instagram_profile` -- username, name, biography, website, picture, followers, following and post count for an Instagram business or creator account.
- `meta_graph_instagram_posts` -- recent media of such an account: ID, caption, media type, permalink, timestamp, like and comment counts, media and thumbnail URLs, with a paging cursor.
## Auth
BYO only: pass your own Meta access token as `_apiKey`. Without it every tool answers that it requires an API key. A token Meta refuses, or one whose app lacks a permission, is reported as a problem with your credential, not an outage.
- Facebook Pages you do not manage need the Page Public Content Access feature approved for your Meta app.
- Instagram lookups run through your own Instagram professional account: pass its ID as `ig_user_id`. Only business and creator accounts can be looked up; personal and age-gated accounts are not returned.
## Fields Meta does not provide through these routes
Each response lists them in `not_available`. Facebook page: email, photos, work, education, following count. Facebook posts: author details, media files, reaction breakdown by type, view counts. Instagram profile: verified flag, category, public email, private flag, highlights, pronouns. Instagram posts: play and view counts, location, carousel children.
## Data sources
- Meta, Graph API. Every response carries the source name.
## Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
```json
{
"mcpServers": {
"meta-graph": {
"url": "https://gateway.pipeworx.io/meta-graph/mcp"
}
}
}
```
### What this endpoint actually serves
`tools/list` at `https://gateway.pipeworx.io/meta-graph/mcp` returns the tools in the table
above **plus five Pipeworx tools**: `ask_pipeworx`, `discover_tools`, `ask_pipeworx_grounded`, `company_register_search` and `company_facts`.
`ask_pipeworx` answers a question this pack does not cover by routing across the
whole catalog, without adding a second MCP server.
Add an option to the same URL:
- `https://gateway.pipeworx.io/meta-graph/mcp?meta=1` lists this pack's tools plus **up to 48 shared Pipeworx tools** (48 when this README was
generated; a connection without an account lists fewer, and its own `tools/list` is the
exact answer on any given day).
- `https://gateway.pipeworx.io/meta-graph/mcp?meta=0` lists this pack's tools alone.
Or connect to the full Pipeworx gateway to get every pack's tools listed
directly, instead of just this one's:
```json
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
```
Both URLs reach the same gateway and the same 2100+ data sources. The
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
reaches all of them from either one (it is not listed on a `?meta=0` connection).
## No MCP client? Call it over HTTP
This pack takes your own API key (`_apiKey`) — we don't front one for it, so there's no curl here that would run without it. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/meta_graph_facebook_page`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
## Run it from npm
`@pipeworx/mcp-meta-graph` is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with `npx`, and it forwards every call to the same
`https://gateway.pipeworx.io/meta-graph/mcp` endpoint shown above. It needs network access;
there is no offline mode.
```json
{
"mcpServers": {
"meta-graph": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-meta-graph"]
}
}
}
```
Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
`"env": { "PIPEWORX_API_KEY": "<your key>" }` to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.
It lists **only** this pack's tools by default. Set `PIPEWORX_META_TOOLS=1` to
also list `ask_pipeworx` and the other gateway-wide tools.
Behind an HTTPS proxy: Node's built-in `fetch` does not read `HTTPS_PROXY` by
default. Newer Node releases honour it when `NODE_USE_ENV_PROXY=1` is set; check
your Node version's documentation.
## Using with ask_pipeworx
Instead of calling tools directly, you can ask questions in plain English —
this works on the pack endpoint above as well as on the full gateway:
```
ask_pipeworx({ question: "your question about Meta Graph data" })
```
The gateway picks the right tool and fills the arguments automatically.
## More
- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues