Tranna MCP
Provides access to Facebook Pages through the official Meta Graph API, including page data retrieval and, when write operations are enabled, publishing.
Provides access to linked Instagram professional accounts through the official Meta Graph API, enabling account data retrieval and, when write operations are enabled, publishing.
Integrates with Meta's official Graph API and Marketing API, providing access to Facebook Pages, linked Instagram professional accounts, and marketing campaign operations.
Click on "Deploy 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., "@Tranna MCPWhat are the latest metrics for my Facebook page?"
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.
Tranna MCP
Tranna MCP is a production-oriented Model Context Protocol (MCP) server foundation for connecting Claude Desktop to future social-media and marketing platforms.
It provides a reusable connector framework, one disabled-by-default fake ExampleConnector, and optional Meta and Google connectors that call only official APIs. The Google connector supports GA4, Google Ads, Business Profile, Search Console, and YouTube Data/Analytics through one OAuth consent flow. The server always exposes the read-only diagnostic tool tranna_get_service_status.
Start with Docker Compose
From this directory, run:
docker compose upDocker Compose builds the image if needed and starts the server. The health endpoints are available at:
http://localhost:3000/healthz— process livenesshttp://localhost:3000/readyz— MCP server readiness
Stop it with Ctrl+C, then run docker compose down if you also want to remove the container and network.
For configuration and Claude Desktop connection instructions, see SETUP.md.
Related MCP server: meta-ads-mcp-server
Architecture
src/
├── authentication/ # Application authentication contracts; disabled placeholder only
├── configuration/ # Validated environment configuration
├── connectors/ # Reusable OAuth connector framework, registry, and fake example
├── server/ # MCP lifecycle, stdio transport, health server, state
├── tools/ # MCP tool registration and tool implementations
└── utilities/ # Structured logger and shared errorsThe only transport enabled is the official MCP SDK's stdio transport, which is the normal local transport for Claude Desktop. Operational logs are written to stderr, leaving stdout exclusively for MCP JSON-RPC messages.
Configuration
Copy .env.example to .env to adjust local Docker Compose settings. All values are validated at startup.
Variable | Default | Purpose |
|
|
|
|
|
|
|
| Version returned in server status |
|
| Enables the health HTTP server |
|
| Interface for health checks |
|
| Health HTTP port for native execution |
|
| Host port mapped by Docker Compose |
|
| Enables the fake demonstration connector and its fake-data MCP tool |
|
| Enables the real Meta connector after all required |
|
| Enables the real Google connector after all required |
docker-compose.yml intentionally fixes the container health port to 3000, because Docker's health check runs inside the container. Use HOST_HEALTH_PORT to change the host-facing port. Do not set HEALTH_ENABLED=false for the Compose service, because its health check requires the endpoint.
Development and verification
Requires Node.js 24 or later.
npm install
npm run typecheck
npm test
npm run build
npm startUse npm run dev for file-watching development. It loads .env when present.
Meta connector
The Meta connector is disabled by default. When explicitly configured, it supports official Graph API access to Facebook Pages, linked Instagram professional accounts, and Marketing API campaign operations. OAuth credentials, Page access tokens, OAuth state, and discovered asset IDs are encrypted at rest with AES-256-GCM; tokens are never written to application logs or MCP tool output.
Read the detailed Meta setup guide before enabling it. The guide covers app creation, products, OAuth redirect settings, permissions, review/business-verification limits, all environment variables, the connection flow, and supported limitations.
META_ALLOW_WRITE_OPERATIONS defaults to false. Publishing, campaign creation, campaign state changes, and budget updates fail locally until it is explicitly set to true.
Google connector
The Google connector is disabled by default. It uses Google's OAuth authorization-code flow and encrypts OAuth tokens and CSRF state at rest with AES-256-GCM. One google_begin_connect / google_complete_connect authorization requests the configured GA4, Google Ads, Business Profile, Search Console, and YouTube scopes. Tokens and authorization codes are never logged or returned by MCP tools.
Set GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_TOKEN_ENCRYPTION_KEY, GOOGLE_ADS_DEVELOPER_TOKEN, and a currently supported GOOGLE_ADS_API_VERSION, then register the exact callback URI http://localhost:3000/oauth/google/callback. Enable the listed APIs in the Google Cloud project. GOOGLE_ADS_LOGIN_CUSTOMER_ID is optional and supports manager-account access. The connector sends transient 429/5xx failures through a bounded exponential retry policy.
GOOGLE_ALLOW_WRITE_OPERATIONS defaults to false. Review replies and YouTube uploads are locally rejected until it is explicitly enabled. update_video_metadata and delete_video are registered only when GOOGLE_OAUTH_SCOPES explicitly includes https://www.googleapis.com/auth/youtube.force-ssl. publish_short uploads content marked with #Shorts; YouTube makes the final Shorts eligibility determination.
The Google connector exposes direct provider operations only: OAuth lifecycle, GA4 accounts/properties/reports, Google Ads accounts/campaigns/metrics, Business Profile locations/reviews, Search Console sites/query/page rows, and supported YouTube data, analytics, and upload operations. Google Ads campaign tools are named list_google_ads_campaigns and get_google_ads_campaign to avoid collisions with Meta campaign tools. It intentionally has no recommendation, anomaly-detection, marketing-dashboard, or other marketing-intelligence layer.
Required Google Cloud APIs are Google Analytics Admin API, Google Analytics Data API, Google Ads API, Business Profile Account Management API, Business Profile Business Information API, Google My Business API (reviews), Search Console API, YouTube Data API v3, and YouTube Analytics API. The default scopes are openid, email, profile, Analytics read-only, Ads, Business Profile, Search Console read-only, and YouTube read-only/upload; .env.example contains each official scope URL. Add https://www.googleapis.com/auth/youtube.force-ssl only when video metadata update and deletion are needed.
Current scope and platform limitations
The ExampleConnector remains a framework demonstration only: its OAuth client, token values, health check, capability, and MCP tool all use fixed local fake data and make no network calls. Meta and Google are the real platform connectors.
When adding a connector, use only the platform's documented official API and SDK, implement only approved scopes/capabilities, and document any access tier, app review, business verification, sandbox restriction, or unavailable capability. This project intentionally provides no unofficial API clients or web-scraping fallback.
Connector framework
Every connector extends AbstractConnector and receives its dependencies through the constructor. The base class provides a uniform interface and implements configuration gating, lifecycle state, OAuth token persistence/refresh, health tracking, safe status snapshots, structured logging, and error conversion. It does not make provider calls itself.
Method | Purpose |
| Runs the injected OAuth authorization flow and stores its returned token. |
| Optionally revokes the token through the injected OAuth client and clears local storage. |
| Loads and refreshes a stored OAuth token without exposing it to MCP. |
| Runs the connector-specific health check and returns a normalized result. |
| Returns a token-free connection and configuration snapshot. |
| Lists provider features and documented limitations. |
| Registers connector MCP tools through a testable, narrow tool-registry boundary. |
src/connectors/connector-registration.ts is the automatic registration composition point. It creates each known connector using the application configuration and dependency injection. Disabled connectors remain visible in service status but do not register MCP tools and reject connection attempts.
Creating a future connector
Confirm the exact official API capability, required OAuth scopes, approval requirements, and business-verification requirements.
Create a connector class under
src/connectors/<connector-name>/that extendsAbstractConnector.Inject an official OAuth client, a secure production token store, logger, and connector configuration. Do not construct these inside the connector class.
Implement
oauthScopes,performHealthCheck, andregisterConnectorTools. Keep tool methods narrow and describe all limitations.Add an enablement variable to
AppConfigandloadConfiguration, then register the factory inconnector-registration.ts.Test the class directly with fake
OAuthClient,TokenStore, logger, clock, and tool registrar dependencies. Do not test against a real provider in unit tests.
The included ExampleConnector follows this pattern and is covered by independent tests. It must not be copied as a real credential or token-storage implementation: InMemoryTokenStore and ExampleOAuthClient are demonstration-only.
Production characteristics
Exact MCP SDK version is pinned (
@modelcontextprotocol/sdk1.30.0) for repeatable installs.Startup configuration is validated before serving requests.
Structured JSON logging goes to stderr.
Signal handling closes MCP and health resources cleanly.
Docker runs as an unprivileged user with a read-only filesystem and a Docker health check.
The image uses a multi-stage production build with development dependencies omitted.
Extending safely
Follow the connector-framework process above.
Add only the supported OAuth authentication flow; never log tokens or authorization headers.
Register the connector factory in
src/connectors/connector-registration.ts.Add narrow MCP tools through
registerConnectorTools, with clear descriptions and appropriate annotations.Add configuration validation, tests, and documentation for the capability and any provider approval requirement.
Available Tools
1 tooltranna_get_service_statusGet Tranna MCP Service StatusARead-onlyIdempotent
Returns the server's runtime readiness, authentication placeholder status, and registered connector statuses. No platform data is accessed.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare read-only, idempotent, and non-destructive behavior. The description adds valuable context by explicitly noting 'No platform data is accessed' and mentioning 'authentication placeholder status,' which informs the user that authentication is not fully implemented. This goes beyond the annotation metadata.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, concise sentence that front-loads the primary purpose ('Returns statuses') and appends a clarifying note about data access. There is no redundant wording or filler, making it highly efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
This is a low-complexity tool with no parameters, no output schema, and no siblings. The description sufficiently outlines the return categories and clarifies the tool's non-data-access behavior. Though the output format is not detailed, the lack of an output schema is mitigated by the clear enumeration of what statuses are returned.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has zero parameters, so there are no parameter semantics to explain. The description compensates by specifying the key categories of the return value (runtime readiness, auth status, connector statuses), which gives the user a clear idea of what the tool reports. Baseline for zero params is 4.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool returns server runtime readiness, authentication placeholder status, and registered connector statuses. The verb 'Returns' specifies an action, the resource is well-defined, and the final sentence 'No platform data is accessed' clarifies the scope, distinguishing this from data-access tools even without siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context: it is a service status/health check tool with no parameters. Since there are no sibling tools, it does not need to differentiate alternatives, but it implicitly signals when to use it (to check MCP service status). It does not explicitly state when not to use it, but given the tool's simplicity, the absence of exclusions is acceptable.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v0.1.0- First observed
tranna_get_service_status
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of confusion between tools. The tool's purpose is clearly stated as a status check.
The single tool name 'tranna_get_service_status' follows a clear verb_noun pattern in snake_case, making it descriptive and internally consistent, though there are no other tools to compare.
A single status-check tool is far too few to constitute a substantive MCP server, feeling like a placeholder or stub rather than a useful collection.
The tool only returns status information and explicitly accesses no platform data, leaving no operations for actual work, which is severely incomplete for any practical use.
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Marketo MCP server for AI. 130 tools to operate Marketo from Claude, Cursor, or ChatGPT.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Hosted Amazon Seller Central and Amazon Ads MCP server for Claude, ChatGPT, Cursor, and agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server to manage Meta Ads (Facebook/Instagram) campaigns, ad sets, insights, and audiences from Claude Code using natural language.94 npmMIT
- AlicenseAqualityDmaintenanceMCP Server for the Meta Marketing API. Gives Claude Desktop direct access to your ad account data — campaign performance, creative analysis, audience breakdowns, and budget pacing.10206 npm1MIT
- AlicenseNot gradedqualityCmaintenanceA production-ready Remote MCP Server that gives Claude direct, tool-based access to your Instagram Business account through the Meta Graph API — profile data, posts, comments, publishing, insights, analytics, hashtags, messaging, and real-time webhooks.26 npmMIT
- FlicenseAqualityCmaintenanceMCP server that wraps Meta's Messenger Platform, Instagram Messaging, and comment moderation APIs as semantic tools for LLM agents to read inbox, reply, and moderate comments.16-