fansly-mcp
The fansly-mcp server is a fully local analytics and automation hub that connects to the Fansly API using your own session, persisting metrics to a local SQLite database and exposing 49 MCP tools.
Session & Profile Management:
Verify session status, fetch profile metrics (followers, content, tiers, walls), manage multiple accounts, and switch between them.
Growth & Revenue Analytics:
Track subscribers, generate WoW/MoM comparative growth reports, forecast growth, measure income, analyze churn and conversion rates, audit tier promotions, set recession alerts, and identify top fans.
Content & Post Performance:
Analyze post performance (likes, comments, tips), compare top/bottom posts, rank posts, track post lifecycle, analyze hashtags and hashtag trends, generate a 7×24 posting heatmap, find optimal posting times, track and optimize for the For You Page (FYP), and audit your media vault for underperforming content.
Messaging & PPV Intelligence:
Analyze message flows, rank high-spending fans, get messaging metrics, correlate messaging with post performance, calculate PPV price elasticity, and get PPV pricing suggestions.
Tracking & Attribution:
Register and track links, record clicks, and attribute tip revenue to specific posts from persisted SQLite data.
Competitor Monitoring:
Discover, register, snapshot, classify, and benchmark competitors; track competitor growth, set alerts, view a scoreboard, benchmark hashtags, copy competitor strategies, and monitor competitive FYP.
Daily Orchestration:
Run a complete daily snapshot pipeline (with optional scheduler), plus resources and prompts for audits, weekly dashboards, and content planning.
Secure by Design:
100% local via STDIO transport, SQLite with WAL, HTTPS-only to Fansly's API, with auto-reauth via Chrome CDP.
Persists Fansly metrics and analytics data locally in a SQLite database (WAL mode), providing tools to analyze growth, churn, performance, and more from the stored snapshots.
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., "@fansly-mcp analyze my post performance"
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.
fansly-mcp — Servidor MCP de analítica para Fansly
Consulta la API real de Fansly con tu propia sesión (token, Chrome CDP o perfil persistente) y persiste métricas en SQLite local. 100% local, transporte STDIO.
Requiere: Node.js ≥ 20 · sesión de Fansly
Features
49 herramientas MCP, agrupadas por dominio:
Dominio | Herramientas |
Perfil y sesión |
|
Métricas e ingresos |
|
Posts y contenido |
|
Mensajería y PPV |
|
Tracking y vault |
|
Competencia |
|
Orquestación |
|
Recursos: fansly://resumen, fansly://metricas/{fecha}, fansly://post/{postId}, fansly://competidores, fansly://hashtags
Prompts: auditar-perfil, analizar-contenido-rezagado, dashboard-semanal, plan-contenido-semanal, auditoria-competencia, analisis-post-profundo
Related MCP server: openpanel-mcp
Setup
npm install && npm run build
cp .env.example .env
# Env: FANSLY_TOKEN=<token|vacío> FANSLY_CDP_URL=http://127.0.0.1:9222
# FANSLY_ACCOUNTS='{"luna":{"cdpUrl":"...","userDataDir":"..."}}' FANSLY_ACTIVE_ACCOUNT=lunaSesión (fansly.com → DevTools → Console): JSON.parse(localStorage.getItem("session_active_session")).token
Flujo CDP (sin pegar tokens): con FANSLY_TOKEN vacío, el MCP relanza tu Chrome con debug port, reutiliza tu sesión de fansly y se re-autentica solo. Por modelo: npm run chrome-cdp -- <cuenta>.
Activación por cliente: configs opencode.json · .mcp.json · claude_desktop_config.json → guía completa en docs/09
Estructura
src/
config.ts → env (dotenv + zod)
index.ts → entrada MCP (STDIO + shutdown)
engine/fansly.ts → motor API resiliente (retries/backoff, refresh en 401)
engine/chrome-launcher.ts → Chrome CDP multi-perfil (compartido con scripts/)
engine/session.ts → token/sesión (readTokenFromStorage, CLEAN_SESSION_SCRIPT)
db/repository.ts → SQLite (WAL, migraciones, upserts)
tools/ → 49 herramientas MCP (+ helpers.ts, types.ts)
resources/ prompts/ → recursos y prompts
scripts/login.ts → auth manual en Chromium persistente
docs/ → documentación técnica (índice: docs/README.md)Seguridad
100% local; solo HTTPS a la API propia de Fansly.
.env,browser_data/,*.db*en.gitignore.Selfbot sobre API interna: revisa los ToS de Fansly. Uso personal/educativo.
Licencia: MIT
Available Tools
13 toolsanalizar_atribucion_linksAtribución de ingresos por publicaciónA
Analiza qué publicaciones generan más ingresos por propinas desde los datos persistidos en SQLite (post_metrics).
Inputs: no named parameters.
analizar_churnAnálisis de churnA
Mide la cancelación de suscriptores (churn) a partir de los snapshots diarios registrados en SQLite.
Inputs: dias.
analizar_rendimiento_postsRendimiento de publicacionesA
Extrae likes, comentarios y propinas de las publicaciones recientes del propio timeline (timelinenew) y las persiste en SQLite.
Inputs: limite.
auditar_caja_fuerteAuditoría de la caja fuerteA
Inspecciona el media publicado en el muro del perfil (mediaoffers/location) identificando tipos de contenido.
Inputs: no named parameters.
auditar_promociones_tiersAuditoría de tiers y promocionesA
Audita tiers de suscripción, precios y planes desde el perfil real (account/me).
Inputs: no named parameters.
calcular_elasticidad_ppvSugerencia de precio PPVA
Analiza patrones históricos de compra desde SQLite y sugiere un precio orientativo para PPV.
Inputs: no named parameters.
generar_mapa_calor_horarioMapa de calor horarioA
Extrae las publicaciones del propio timeline y genera una matriz 7x24 con el volumen de publicaciones por hora/día.
Inputs: no named parameters.
obtener_flujo_mensajesFlujo de mensajesB
Lista conversaciones (messaging/groups) y agrega propinas recibidas en los mensajes recientes (message).
Inputs: no named parameters.
obtener_metricas_perfilMétricas del perfilA
Extrae seguidores, contenido publicado, tiers de suscripción y muros del perfil activo desde /account/me.
Inputs: no named parameters.
obtener_reporte_crecimientoReporte de crecimientoB
Genera el reporte comparativo de crecimiento (WoW / MoM) analizando SQLite local.
Inputs: dias.
obtener_tendencias_hashtagTendencias de hashtagA
Busca publicaciones propias cuyo contenido incluya el hashtag (contentSearch en timelinenew) y resume interacción acumulada.
Inputs: hashtag (required).
obtener_top_fansFans con conversación activaA
Lista los fans con chats activos desde /messaging/groups, el origen de datos real para perfiles que interactúan.
Inputs: limite.
verificar_sesionVerificar sesión de FanslyA
Comprueba si existe token de sesión (browser_data/ o FANSLY_TOKEN) y reporta el estado de autenticación.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have clearly distinct purposes, but a few overlap: analizar_rendimiento_posts, obtener_tendencias_hashtag, and analizar_atribucion_links all analyze post performance from slightly different angles. Descriptions help, but some tools could be confused without careful reading.
All 13 tools use a consistent verb_noun pattern (verificar_sesion, obtener_metricas_perfil, analizar_rendimiento_posts, etc.). The verbs vary (obtener, analizar, generar, auditar, calcular) but follow a predictable structure, making the set easy to navigate.
With 13 tools, the server is well-scoped for a Fansly analytics suite. Each tool covers a distinct aspect of analytics (profile, posts, fans, churn, PPV, content), and the count falls comfortably within the ideal 3-15 range without feeling excessive.
The server provides broad coverage of analytics: session check, profile metrics, growth, post performance, hashtag trends, time heatmap, top fans, churn, tier audit, message flow, PPV pricing, attribution, and content audit. Minor gaps exist, such as no tool to refresh all data at once or to directly set PPV prices, but these are workable around.
Maintenance
Related MCP Connectors
Native OnlyFans and Fansly access as MCP tools. One CreatorAPI key.
Analytics for MCP servers. Query your tool calls, first-call success, retries and schema cost.
Hosted MCP server for DataLikers — Instagram & TikTok data API. 51 tools: Instagram user search by demographics (gender/age/race/country/city), profiles, bulk lookup, engagement, posts & reels, comments, hashtags, locations, stories, highlights, music, business accounts, top users; TikTok users, videos, comments, hashtags, playlists and top charts. Streamable HTTP, Bearer API key. Free tier: 100 requests on signup at https://datalikers.com/p/1by27bwg
MCP server for Lemon Squeezy — stores, products, orders, subscriptions, license keys.
Related MCP Servers
- FlicenseAqualityDmaintenanceMCP server for the WhatsMyBudget Analytics API, providing tools to query budget periods, categories, accounts, and summaries.26-
- FlicenseNot gradedqualityDmaintenanceMinimal MCP server for OpenPanel analytics, enabling queries for landing pages, page events, and tracked event names.-

@vskstudio/takt-mcpofficial
AlicenseAqualityFmaintenanceMCP server for querying privacy-friendly website analytics from a self-hosted Takt instance, supporting metrics like visitors, pageviews, realtime activity, and more.10MIT- AlicenseNot gradedqualityDmaintenanceMCP server for organic Instagram analytics via the Meta Graph API, providing read-only tools for profiles, media, insights, audience, and optional publishing.GPL 3.0