Meta AI Demos MCP
Provides tools for interacting with Meta AI Demos (aidemos.meta.com), enabling session verification, listing and detailing gallery templates, uploading media, and making GraphQL calls to Meta's Segment Anything services.
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., "@Meta AI Demos MCPCheck my Meta AI Demos session and list my SAM3 templates."
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.
Meta AI Demos MCP
Serveur MCP pour utiliser les outils Meta AI Demos (aidemos.meta.com) directement depuis Cursor, sans installer les modèles localement.
Avertissement : client non officiel, reverse-engineered. Non affilié à Meta. Utilisez conformément aux Conditions d'utilisation de Meta AI Demos.
Fonctionnalités
Authentification par cookies de session (
fair_sess,fair_csrf,datr)Rafraîchissement automatique des tokens page (
lsd,fb_dtsg)API GraphQL Relay vers
https://www.aidemos.meta.com/api/graphql/Outils MCP pour Segment Anything (SAM3) :
Vérifier la session
Lister / détailler les templates galerie
Upload média vers les serveurs Meta
Appels GraphQL génériques (31 opérations Relay connues)
Related MCP server: Gamma MCP Server
Prérequis
Node.js 18+
Compte Meta connecté sur aidemos.meta.com/segment-anything/gallery
Installation
git clone https://github.com/ErrorNoName/MetaAPI.git
cd MetaAPI
npm install
npm run buildConfiguration des cookies
Option A — Fichier (recommandé)
Connectez-vous sur aidemos.meta.com
Ouvrez DevTools (F12) → Application → Cookies →
https://www.aidemos.meta.comCopiez
fair_sess,fair_csrf,datrCréez
cookies.jsonà partir de l'exemple :
copy cookies.example.json cookies.json{
"fair_sess": "VOTRE_FAIR_SESS",
"fair_csrf": "VOTRE_FAIR_CSRF",
"datr": "VOTRE_DATR"
}Option B — Variables d'environnement
set META_AIDEMOS_FAIR_SESS=...
set META_AIDEMOS_FAIR_CSRF=...
set META_AIDEMOS_DATR=...Ou META_AIDEMOS_COOKIES_FILE=C:\chemin\vers\cookies.json
Cursor — configuration MCP
Ajoutez dans .cursor/mcp.json (ou les paramètres MCP globaux) :
{
"mcpServers": {
"meta-ai-demos": {
"command": "node",
"args": ["C:\\chemin\\vers\\MetaAPI\\dist\\index.js"],
"env": {
"META_AIDEMOS_COOKIES_FILE": "C:\\chemin\\vers\\MetaAPI\\cookies.json"
}
}
}
}Redémarrez Cursor. Les outils aidemos_* apparaissent dans le chat Agent.
Outils MCP disponibles
Outil | Description |
| Vérifie login + acceptation TOS |
| Templates SAM3 de votre galerie |
| Détails d'un template par ID |
| Templates communautaires |
| Upload image/vidéo/audio |
| Statut et URL CDN d'un média |
| Appel GraphQL Relay arbitraire |
| Liste des 31 opérations connues |
| Force le refresh des tokens |
Exemple d'utilisation dans Cursor
Vérifie ma session Meta AI Demos, puis liste les templates SAM disponibles.Upload l'image C:\Photos\test.jpg via Meta AI Demos (SAM3_IMAGE).Architecture
Browser cookies (fair_sess, fair_csrf, datr)
↓
MetaAIDemos MCP Server
↓
GET aidemos.meta.com → extract lsd + fb_dtsg
↓
POST /api/graphql/ (RelayModern + x-csrf-token)
↓
Serveurs Meta FAIR (Segment Anything, etc.)Opérations Relay connues
Les doc_id GraphQL sont extraits des bundles JS Meta et mappés dans src/constants.ts. Exemples :
SAMRootViewerQuery— session utilisateurSAM3DemoRootTemplateGalleryQuery— galerie templatesuseSAMUploadMediaMutation— upload médiaSAM3EditorContextProviderSessionQuery— session éditeur
Limitations
Inférence SAM (masques) : une partie du pipeline (streaming WASM
streamMasks) s'exécute côté navigateur. Ce MCP couvre l'API serveur (upload, templates, GraphQL). L'inférence complète en headless nécessiterait un navigateur automatisé (hors scope v1).Expiration cookies :
fair_sessexpire périodiquement — re-exportez depuis le navigateur si les requêtes échouent.Région : aidemos.meta.com peut être indisponible selon la région.
Développement
npm run dev # build + start
node scripts/test-graphql.js # test GraphQL manuel (cookies hardcodés — dev only)Licence
MIT — voir LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceEnables programmatic control of Cursor's cloud-based AI agents for automated code generation and repository management via standardized MCP tools.Last updated225MIT
- Flicense-qualityFmaintenanceEnables generating presentations, creating from templates, and managing Gamma resources via MCP tools.Last updated
- Flicense-qualityDmaintenanceEnables file system operations, web scraping, and AI-powered search through MCP tools for use by LLM agents.Last updated1
- Flicense-qualityCmaintenanceProvides 12 MCP tools to directly interact with DEM MDM backend API, enabling Cursor or AI agents to manage MDM data.Last updated
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Manage SRG+ hubs, channels, content, assets, users, and workspaces from any MCP-aware AI agent.
Create and manage Lindo AI websites, pages, blogs, clients, and credits from any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/ErrorNoName/MetaAPI'
If you have feedback or need assistance with the MCP directory API, please join our Discord server