Tattoo Feed
Provides tools to browse and curate posts from Instagram tattoo artists via Instagram's Business Discovery API, allowing LLM clients to list artists, fetch feeds, discover inspirations, bookmark posts, and record preferences.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Tattoo FeedShow me my next inspiration"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Tattoo Feed
An MCP (Model Context Protocol) server that lets an LLM client browse and curate posts from a hand-picked list of Instagram tattoo artists, via Instagram's Business Discovery API.
You point it at the artists you follow, and from your chat client you can pull a merged feed, discover one post at a time, bookmark the ones you like, and record notes about your taste so a future session remembers them.
Phase 2 makes this a remote, OAuth-protected ChatGPT app. The product runs
over an HTTP endpoint that ChatGPT connects to as a custom connector;
next_inspiration returns a ChatGPT Apps SDK widget that renders the preview
image inline.
The widget exists because no chat client we tested displays a raw MCP image content block to the user inline. ChatGPT does not render image blocks at all; Claude receives the image and can reason about it, but does not display it in the conversation (a Claude client limitation, confirmed by manual testing). The Apps SDK widget rendered by ChatGPT is the only path that actually puts the image in front of you — which is why the product targets the ChatGPT connector over HTTP. (stdio remains, but only as a local dev/test transport — see Running.)
Architecture
A deliberate two-layer split so a future GUI can reuse the logic without a rewrite:
core(src/tattoo_feed/excludingserver/) — all real logic: domain models, typed errors, JSON-file repositories, the Graph API client, image processing, and the services that orchestrate them. Knows nothing about MCP.server(src/tattoo_feed/server/) — a thin FastMCP adapter that exposescoreas MCP tools. Holds no business logic.
src/tattoo_feed/
config.py # lazy env config (IG_ACCESS_TOKEN, IG_USER_ID)
errors.py # typed error hierarchy (TattooFeedError and subclasses)
models.py # Pydantic v2 value objects
imaging.py # preview downscale + EXIF strip (≤640px JPEG)
repositories/ # Repository ABC + JSON-file stores (atomic writes)
graph/client.py # Business Discovery client
services/ # FeedService, ArtistService, InspirationService, PreferenceService
server/app.py # build_server() factory; FastMCP tools and stdio/HTTP entrypoint
server/auth.py # OAuth 2.1 JWT verifier (resource-server side)
server/widgets/ # Apps SDK widget HTML served as ui:// MCP resourceTransport modes
Mode | Role | Who connects |
HTTP ( | The product — remote, OAuth-protected | ChatGPT (renders the widget inline), any remote MCP client |
stdio (code default) | Local development & testing only | local MCP clients; does not render the inspiration image inline |
HTTP is how the app is actually run and used. stdio is retained as the
credential-free local entrypoint for development and the hermetic test suite (it
needs no tunnel or IdP), but it is not a product surface: a local client receives
the next_inspiration text but not the rendered image.
In HTTP mode the server acts as an OAuth 2.1 resource server: every request
must carry a valid bearer token issued by your identity provider. An
unauthenticated request receives 401 with a WWW-Authenticate: Bearer resource_metadata=... header per RFC 9728; the ChatGPT connector follows this
to discover and complete the login flow automatically.
Related MCP server: Instagram MCP Server
Setup
Requirements: Python 3.12 and uv.
uv sync # create the venv and install pinned deps
cp .env.example .env # then edit .env with your real credentialsEnvironment variables
Always required (Instagram credentials)
Variable | Meaning |
| A long-lived Instagram Graph API access token. |
| The Instagram Business/Creator account id that owns the token. |
| Optional. Where the JSON stores live (default |
Required for HTTP / ChatGPT mode (OAuth resource-server config)
Variable | Meaning |
| Issuer URL of your IdP — must exactly match the |
| JWKS endpoint used to verify JWT signatures. |
| Canonical public URL of this server — the RFC 8707 audience binding. |
| Comma-separated required scopes (e.g. |
| ngrok auth token for TLS ingress. |
.env is gitignored and must never be committed. Only .env.example (with
placeholders) is in the repo.
Getting Instagram credentials is a one-time manual step on Meta's side: create a Meta app, connect an Instagram Business/Creator account, and mint a long-lived access token with Business Discovery permission.
Running
The product runs over HTTP and is used through ChatGPT — that's the path below. The stdio path after it is for local development and tests only and does not render the inspiration image inline.
Remote (HTTP + OAuth + ngrok — ChatGPT connector) — the product
The quickest path is Docker Compose, which starts the server and the ngrok tunnel together:
cp .env.example .env # fill in all values, including MCP_AUTH_* and NGROK_AUTHTOKEN
./scripts/run-server.sh # builds the image and starts server + ngrokAfter startup:
Open the ngrok inspector at
http://localhost:4040to find the public URL.In ChatGPT, add a custom connector:
URL:
https://<your-ngrok-url>/mcpAuthentication: OAuth
ChatGPT will walk through OAuth discovery and a browser login against your IdP.
Identity provider (you choose)
The server is IdP-agnostic — it only needs an issuer that supports OAuth 2.1
with PKCE, RFC 8414/OIDC metadata discovery, RFC 8707 resource indicator, and
Client ID Metadata Documents. Auth0 has a documented walkthrough for
exactly this setup:
https://auth0.com/blog/add-remote-mcp-server-chatgpt/. Alternatives:
Stytch, WorkOS, Descope.
Configure your IdP to include the server's public URL (MCP_AUTH_AUDIENCE) as
the audience in the tokens it issues, then set that same URL as the resource
identifier in the ChatGPT connector.
Stable domain (recommended)
A new ngrok URL is generated each restart, which breaks the ChatGPT connector
URL. Reserve a stable domain at https://dashboard.ngrok.com/domains, set
NGROK_DOMAIN in .env, and add --domain=${NGROK_DOMAIN} to the ngrok
command in docker-compose.yml.
Local development & testing (stdio)
stdio is the credential-free local entrypoint — handy for exercising the tools
without standing up a tunnel and an IdP, and the transport the hermetic test
suite boots over. It is not the product surface: a local stdio client receives
the next_inspiration text but the image does not render inline (see the note
at the top of this README). Use ChatGPT over HTTP for the visual experience.
uv run python -m tattoo_feed.server.appThe server speaks the MCP stdio protocol. To wire it into a local MCP client, add:
{
"mcpServers": {
"tattoo-feed": {
"command": "uv",
"args": ["run", "python", "-m", "tattoo_feed.server.app"],
"cwd": "/absolute/path/to/tattoo-feed",
"env": {
"IG_ACCESS_TOKEN": "your-token",
"IG_USER_ID": "your-business-user-id"
}
}
}
}In the dev container (gate / CI)
A dev image (Dockerfile) bundles Python, uv, Node, and the toolchain:
docker build -t tattoo-feed-dev .
./run-loop.sh # mounts $PWD to /workspace, nothing else on your machineThe tools (MCP surface)
Tool | What it does |
| List tracked artists. |
| Validate the handle is a reachable professional account, then track it. |
| Stop tracking a handle. |
| Merged, newest-first feed. Metadata + permalinks only (no images). |
| One not-yet-seen post, marked seen. Returns an Apps SDK widget; the image renders inline only in ChatGPT. Other clients receive the text but not a rendered image. |
| Bookmark a post into the saved collection. |
| The saved collection, in save order. |
| Remove a saved item. |
| Clear the seen-set so inspiration starts fresh. |
| Persist a taste note (propose-then-confirm, see below). |
| All recorded preferences, to reload taste in a fresh session. |
How next_inspiration surfaces in ChatGPT
The tool returns three channels (per the Apps SDK spec):
structuredContent— handle, permalink, caption — what the model narrates. No base64.content— plain text the model can narrate. In a non-ChatGPT client this is all you see — the image is not rendered there (Claude receives the image but does not display it inline; other clients show only this text).widget — an HTML/JS component registered at
ui://widget/inspiration.html(mimeTypetext/html;profile=mcp-app) that the ChatGPT host renders inline. The preview image travels as a data URL in_metaso it reaches the widget without passing through the model's context window. This is the only channel that renders the image to the user, and only ChatGPT honours it.
Design decisions
Two-layer split (core / server). MCP concepts never leak into
core; business logic never leaks intoserver. This is what makes a future GUI a bolt-on rather than a rewrite.JSON-file persistence behind a
Repositoryinterface. Simple, inspectable, and swappable. Writes are atomic (temp file +os.replace) so a crash mid-write can never corrupt a store.Pydantic v2 frozen models for everything crossing a boundary, so external data is validated once and treated as immutable values thereafter.
Typed error hierarchy (
TattooFeedErrorand friends). Every external failure maps to a typed error; nothing raises bare exceptions across a boundary, so the client always gets a readable message instead of a stack trace.Lazy credentials. The server boots and lists its tools with no network and no real credentials; tokens are only read when a tool actually calls Instagram or when the auth middleware validates a bearer token.
Constructor-injected auth via factory.
build_server(auth_cfg)is the single place aFastMCPinstance is created. Auth is supplied only through the SDK's publicauth=andtoken_verifier=constructor parameters — no private-attribute writes — so the SDK's own pair-validation fires andmypy --strictsees the typed boundary. PassingNonebuilds an unauthenticated server for stdio; the HTTP path passes the liveAuthConfig.Hermetic tests. All Instagram HTTP is mocked with
respx; JWKS is mocked with test-generated RSA keypairs; there are zero live network calls in the test suite. (mypy --strict,ruff, and a 90% coverage floor are enforced.)Widget image as data URL in
_meta. The ≤640px preview is base64-encoded into_meta.imageDataUrl. The ChatGPT host forwards_metato the widget iframe without exposing it to the model, so the base64 blob never inflates the model's context window.Images only where they earn their context. Only
next_inspirationreturns a rendered image — the one-at-a-time conversational moment.get_feedstays metadata-only to keep the context window light.
Limitations (by design)
No video. Video posts are filtered out entirely at the Graph-client layer and never enter the feed, inspiration, or stores.
Carousels show the first image only. Multi-image expansion is out of scope.
Manual token refresh. There is no automatic token refresh. When the token expires, tools fail with a clear
TokenExpiredErrortelling you to mint a new long-lived token and updateIG_ACCESS_TOKEN.Preview sizing is fixed. Previews are capped at 640px on the long edge, aspect ratio preserved, never upscaled, re-encoded as JPEG quality 85.
record_preferenceis propose-then-confirm. The tool persists whatever it is given; the discipline of proposing the observation to you and getting your explicit confirmation before the tool is called lives in the tool's description, so the calling assistant honours it.No write access to Instagram. No posting, commenting, or messaging — this is strictly read-and-curate.
Single account. The server is wired to one Instagram Business/Creator account (set via
IG_USER_ID). OAuth gates who may call, not which account is queried. Multi-account support would require per-session service construction, which is out of scope.IdP dependency. The server relies on an external identity provider for token issuance. The IdP must be set up and configured before the ChatGPT connector will complete its OAuth login.
Inline image rendering is ChatGPT-only. The image renders inline only via the Apps SDK widget in ChatGPT. No other tested client displays it: ChatGPT does not render raw MCP image blocks, and Claude receives the image but does not show it in the conversation (a Claude client limitation found in manual testing). This — not just model preference — is why the product targets the ChatGPT connector.
Widget visual verification is manual. The automated gate confirms the widget resource is registered and the
_metafields are present, but whether the image actually renders in ChatGPT's UI requires a human eyeball check (seeREVIEW.md).No self-hosted authorization server. The server acts as a resource server only; it does not issue tokens. Use Auth0, Stytch, WorkOS, Descope, or another IdP that supports the OAuth 2.1 + PKCE + RFC 8707 flow.
Attribution & copyright
Posts belong to the artists who made them. This tool is for personal discovery and curation, not redistribution:
Previews are downscaled copies (≤640px, EXIF stripped), not full-resolution downloads.
Every image and saved item carries the artist's handle and the post's permalink, so attribution travels with the content and you can always open the original on Instagram.
Respect each artist's rights: don't repost or reuse their work without permission.
Development
The full gate (must all exit 0):
uv run ruff format --check .
uv run ruff check .
uv run mypy --strict src
uv run pytest -q --cov=src/tattoo_feed --cov-report=term-missing --cov-fail-under=90License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/EezyMAcc/Tattoo-Pal'
If you have feedback or need assistance with the MCP directory API, please join our Discord server