Douyin Mini-Game MCP for AI. Automate the entire game backend from your agent.
Works with every AI agent you already use
…and any MCP-compatible client








Connect to your AI in seconds.
Douyin Mini-Game MCP manages the entire backend for casual mobile games. Your agent connects here to handle user authentication, save/load player progress via cloud storage, manage leaderboards, and check all user-generated content against policy violations.
What your AI can do
Check content security
Checks any piece of user-submitted text against Douyin's content rules and reports if it contains prohibited material.
Code2session
Exchanges a temporary login code for the permanent, unique user session tokens needed to access private data.
Get access token
Retrieves the necessary server access token required before making any other API call to the mini-game service.
Exchange a temporary login code for permanent session tokens required to interact with the service.
Write or read structured data, like progress points or settings, into a persistent cloud storage bucket tied to a user account.
Pull current game statistics, including daily active users and player retention rates.
Submit scores to designated leaderboards or check a user's current rank against competitors.
Check any piece of text submitted by a user to ensure it doesn't violate platform community guidelines before publishing.
Ask an AI about this
Waiting for input…
Douyin Mini-Game: 10 Available Tools
These tools give your AI client direct access to every core function of the mini-game backend, from user authentication to data moderation.
Make your AI actually useful.
Add this MCP to Claude, Cursor, or Windsurf and your AI stops guessing. It gets real tools to look things up, take action, and handle the stuff you keep doing by hand.
Start using Douyin Mini-Game on VinkiusCheck Content Security
Checks any piece of user-submitted text against Douyin's content rules and reports if it contains prohibited material.
Code2session
Exchanges a temporary login code for the permanent, unique user session tokens...
Get Access Token
Retrieves the necessary server access token required before making any other API...
Get Analytics
Gathers core game performance data, including daily active users and overall player...
Get Game Rank
Retrieves a user's current standing and associated leaderboard details for specific...
Get User Info
Pulls basic profile data about the player, such as their nickname or avatar ID.
Get User Storage
Reads saved key-value pairs from a user's cloud storage record, like old scores or preferences.
Remove User Storage
Clears one or more specific keys from a user's stored data, useful for resetting...
Set User Storage
Saves new key-value pairs to the user's cloud storage record, updating their current...
Submit Score
Sends a numeric score to the designated leaderboard so players can compete for rank.
Security and governance baked right in.
Pick your AI client below to get set up. Just create a Vinkius account, subscribe, and you're instantly up and running. We handle the entire backend infrastructure, delivering out-of-the-box support for HTTPS Streamable, SSE, and OAuth2—zero messy routing required.
Choose How to Get Started
Build a custom MCP for your own tools, or connect a ready-made integration from our catalog.
Build Your Own
Turn any API into an MCP. Import a spec, define Agent Skills, or deploy with MCPFusion.
- Import from OpenAPI, Swagger, or YAML specs
- Create Agent Skills with progressive disclosure
- Deploy to edge with MCPFusion framework
- Built in DLP, auth, and compliance on every call
- Real time usage dashboard and cost metering
- Publish to catalog or keep private
Make Your AI Do More
Start with Douyin Mini-Game, then connect any of our 5,100+ other servers whenever your AI needs more. One click, no limits.
- Use this MCP plus 5,100+ others, all in one place
- Add new capabilities to your AI anytime you want
- Every connection is secured and compliant automatically
- Track usage and costs across all your servers
- Works with Claude, ChatGPT, Cursor, and more
- New servers added to the catalog every week
Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Douyin Mini-Game. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
VINKIUS INFRASTRUCTURE
Cloud Hosted
Managed infra
V8 Isolated
Sandboxed per request
Zero-Trust Proxy
No stored credentials
DLP Enforced
Policy on every call
GDPR Compliant
EU data residency
Token Compression
~60% cost reduction
Works with Claude, ChatGPT, Cursor, and more
The Model Context Protocol standardizes how applications expose capabilities to LLMs. Instead of operating in isolation, your AI gains direct access to external platforms, live data, and real-world actions through secure, standardized connections.
This connection provides 10 powerful capabilities that interface natively with Claude, ChatGPT, Cursor, and other compatible AI platforms. No middleware. No custom integration required.
The headache of managing game state across multiple dashboards
Right now, updating a player's record means jumping from the authentication service to the profile database, then opening the separate leaderboard tool. You copy the session ID from one screen and paste it into another, hoping you didn't lose track of which score belongs where.
With this MCP, your agent handles the handoffs. It manages the entire chain—from authenticating a player to checking their status, all without you leaving your chat window. You just get the final result.
Douyin Mini-Game MCP: Full Backend Control
You no longer need separate workflows for login, saving data, and checking content. The agent sequences these steps for you; it gets the access token first, then reads from `get_user_storage`, verifies content with `check_content_security`, and finally updates the rank via `submit_score`.
It's one single point of truth for your game backend. You tell your agent what to achieve, and it figures out the precise sequence of calls needed.
What your AI can actually do with this
Building a game means managing more than just the front end. You've got logins, persistent data, scores, and moderation queues—all running on separate systems. This MCP connects your agent directly to that backend. Instead of jumping between developer consoles or writing multiple API calls, you talk to your AI client, and it handles the whole lifecycle.
Your agent can first run code2session to get a user online, then use set_user_storage to save their current level and high score. When they post content, it runs check_content_security. If they play again later, your agent retrieves everything using get_user_info and get_user_storage, all while tracking metrics with get_analytics. Everything is available through one place on Vinkius, letting you focus on the game, not the plumbing.
019d8430-f0a0-714c-a919-c54c6bef7d35 Here's how it actually works
The bottom line is that you don't write the API calls; you tell your AI client what needs to happen in the game backend.
Subscribe to this MCP and supply your Douyin Mini-Game App ID and secret credentials.
Your agent first uses get_access_token to grab the necessary API key, which must be refreshed when it expires.
You then instruct your agent on the task—for example, 'Save user progress' or 'Check content safety'—and the MCP executes the required tool call.
Who is this actually for?
This MCP targets developers, operations engineers, and data analysts building or maintaining casual mobile games. You use it when manual coordination across multiple dashboards—for logins, databases, and moderation tools—is slowing down your release cycle.
Uses this to automate saving player progress via set_user_storage or submitting final scores using submit_score, rather than manually calling API endpoints.
Needs to pull historical performance data and current trends by running get_analytics to measure player engagement rates over time.
Handles incoming user-generated text immediately using check_content_security before it gets published, ensuring compliance with policy.
What Changes When You Connect
Stop juggling multiple endpoints. With this MCP, you handle everything—from user authentication (code2session) to content moderation (check_content_security) within one conversational flow.
Maintain persistent player data without manual intervention. Your agent can automatically set_user_storage progress and retrieve it later using get_user_storage, making the game feel continuous for the player.
Monitor business health instantly. Instead of running reports in a separate dashboard, your agent pulls metrics like DAU or retention rates directly via get_analytics when you need them.
Keep things fair and safe by automating checks. You can enforce policy rules immediately using check_content_security before any user-generated text is ever published.
Manage competition fluidly. Your agent handles both updating scores with submit_score and checking the current rank via get_game_rank, keeping your leaderboards live.
See it in action
Resetting a user's account after cheating.
A player is caught exploiting the game. Instead of manually deleting data across three different databases, the agent runs remove_user_storage to clear all progress, followed by an automated notification.
Analyzing seasonal retention dips.
The marketing team notices a drop in repeat players. The agent queries get_analytics and combines that data with user profile details from get_user_info to pinpoint when the engagement declined.
Onboarding a new beta tester.
The QA engineer needs to test the full loop: first, use code2session for login. Then, manually set initial data using set_user_storage. Finally, verify everything works by running get_user_info.
Handling a public forum post.
A user posts something potentially offensive in the game comments. The agent intercepts this text and runs it through check_content_security. If it fails, the system blocks publication immediately.
The honest tradeoffs
Assuming data is always there
Trying to call get_user_info and expecting a full profile without first acquiring a valid session token.
Always start by calling get_access_token, then use code2session. The agent must follow this sequence before attempting any data retrieval tools like get_user_info or get_user_storage.
Writing scores without context
Calling submit_score and only providing a number, leading to errors because the leaderboard ID is missing.
When submitting a score, always provide both the numeric value and specify the correct rank scene parameter using submit_score.
Confusing profile data with game state
Trying to use get_user_info to find out how many coins a player has, when that stat is saved in their progress.
Player currency or level stats belong in the cloud storage. Use get_user_storage to read game state; keep personal details separate using get_user_info.
When It Fits, When It Doesn't
Use this MCP if your project requires managing a full, persistent gaming lifecycle: authentication, user profile retrieval, scorekeeping, and content moderation. You need the ability to save progress (set_user_storage) and retrieve it later (get_user_storage). Don't use this if you only need basic messaging or simple data fetching; those tasks belong in a dedicated communication MCP. If your goal is solely analytics reporting without user interaction, consider an alternative pure-read metrics tool instead of coupling everything here.
Questions you might have
How do I start using the Douyin Mini-Game MCP? +
You must first subscribe to this MCP on Vinkius. Once connected, your agent will require you to provide your specific App ID and Secret credentials.
Can I just get a user's name using the Douyin Mini-Game MCP? +
Yes, but remember that retrieving basic profile data requires first successfully calling code2session to establish a valid session token.
What is the best way to save game progress? Use set_user_storage? +
That's right. You use set_user_storage when you want your agent to write or update specific key-value pairs, like a player's current level or inventory count.
Does the Douyin Mini-Game MCP handle score resets? +
You can reset progress by explicitly calling remove_user_storage to clear old keys. For competitive scores, you simply overwrite them using submit_score.
What is the correct sequence to get an access token before I can use `code2session`? +
You must first call get_access_token. This provides the necessary credential that allows you to exchange a temporary login code for the final, secure user session keys. Without this initial token, subsequent API calls will fail due to invalid authentication.
How do I validate if user-generated text is safe using `check_content_security`? +
You pass the raw text string directly into check_content_security. The tool returns a boolean value and an explanation of any policy violations. This confirms whether the content can be published in your mini-game.
What specific metrics are available when I call `get_analytics`? +
You retrieve key performance indicators like Daily Active Users (DAU) and user retention rates. These analytics help you spot trends, understand how long players stay engaged, and pinpoint areas where your game needs work.
If I only want to clear one specific setting instead of all data, should I use `remove_user_storage`? +
Yes. Use remove_user_storage and specify the exact keys you need gone (e.g., 'last_login', 'tutorial_completed'). This lets you surgically clean up old entries without wiping out vital game progress.
How do I get my Douyin Mini-Game App ID and Secret? +
Register at the Douyin Open Platform, create a mini-game application, and find your App ID and Secret in the application settings. You'll need entity verification for production deployment.
What is cloud storage used for? +
Cloud storage saves user game data (progress, settings, high scores) as key-value pairs. Each user gets their own storage space. Use setUserStorage to save data and getUserStorage to load it. This is essential for cross-device game continuity.
How does content moderation work? +
The content security API checks user-generated text (nicknames, chat, custom names) against Douyin's content policies. Submit text via the check_content_security tool and receive a pass/fail result. This is mandatory for games with user-generated content features.
We've already built the connector for Douyin Mini-Game. Just plug in your AI agents and start using Vinkius.
No hosting. No infrastructure. No complex setup.
All 10 tools are live and waiting.
You're up and running in seconds.
Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.
Built, hosted, and secured by Vinkius. You just connect and go.