# Douyin Mini-Game MCP for AI Agents AI Agent Connect

> Douyin Mini-Game MCP lets you manage your casual game backend through your AI client. It handles cloud storage for player progress, manages leaderboards, pulls analytics, and checks user content against Douyin's safety policies. It is the direct link between your game's data and your agent.

## Overview
- **Category:** industry-titans
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_6hCWg214oYnfpj0ba455WYwYJgW1H4KsX7vDb0Mh/ai-agent-connect
- **Tags:** douyin, mini-game, cloud-save, leaderboard, content-moderation, casual-gaming

## Description

The Douyin Mini-Game MCP connects your Douyin Mini-Game developer account directly to your AI client so you can manage your game's backend through natural conversation. Most developers spend way too much time switching between the Douyin Open Platform dashboard and their own internal tools just to check a few basic things. You might find yourself constantly refreshing pages to see if a player's data actually saved or manually cross-referencing IDs to find a specific user's score. This Connector changes that by letting you ask your agent to do the work for you. You can tell it to pull the latest retention rates, fetch a specific user's cloud storage data, or even check if a new nickname is safe for the platform. It handles the actual API calls for saving game progress, updating leaderboards, and pulling engagement metrics like DAU. Instead of copy-pasting data into spreadsheets or manually monitoring content violations one by one, you can just ask your agent for a summary of your game's performance. It takes the friction out of the developer experience by turning a complex set of API endpoints into a simple conversation. It's one of the many tools in the Vinkius catalog that lets you talk to the Douyin Open Platform API instead of writing manual requests every time you want to see how your game is doing. You get to spend more time on the actual game design and less time on the plumbing of the backend.

## Tools

### check_content_security
Run user-generated text against Douyin's safety policies. This keeps your game compliant with platform rules.

### get_access_token
Grab the necessary server access token. You'll need this to authorize all other API calls.

### get_user_storage
Fetch specific keys or all data from a user's cloud storage. It's how you load saved game progress or settings.

### remove_user_storage
Delete specific keys from a user's cloud data. Use this to reset progress or clear old entries.

### set_user_storage
Save new key-value pairs to the user's cloud storage. This is how you persist game scores and settings.

### submit_score
Send a numeric score to a specific leaderboard. It handles the submission for competitive game features.

### code2session
Exchange a login code for a session token. This handles the standard Douyin login flow for your users.

### get_analytics
Get game performance data like DAU and retention rates. It helps you spot trends in player behavior quickly.

### get_game_rank
Fetch a user's current standing on specific leaderboards. Use this to show players where they rank in different modes.

### get_user_info
Pull player nicknames and avatars. It's the go-to tool for personalizing the user experience.

## Prompt Examples

**Prompt:** 
```
Can you check if the nickname 'SuperCoolGamer99' is safe to use?
```

**Response:** 
```
I've checked that nickname against the content safety policies. It's safe to use and doesn't violate any community guidelines. You can proceed with the registration.
```

**Prompt:** 
```
Save the progress for user tt_user_456. They just reached level 10 and have 500 coins.
```

**Response:** 
```
Done! I've updated the cloud storage for user tt_user_456.

- Level: 10
- Coins: 500

The data is now persisted in the cloud.
```

**Prompt:** 
```
What's the current DAU and retention for our game?
```

**Response:** 
```
Here are the latest performance metrics for your game:

| Metric | Value |
| :--- | :--- |
| Daily Active Users (DAU) | 12,450 |
| Day 1 Retention | 38% |
| Day 7 Retention | 12% |

Engagement is steady, with a slight uptick in DAU over the last 48 hours.
```

## Capabilities

### Save player progress to cloud storage
Persist game states like level progress and currency to the cloud automatically.

### Update global leaderboards
Submit and update scores for competitive game modes in real-time.

### Fetch real-time retention and DAU metrics
Pull performance data to see how many players are active and staying.

### Verify user content against safety policies
Check user-generated text for policy violations before it goes live.

### Retrieve player profile details
Get nicknames, avatars, and other account details for your users.

### Exchange login codes for active sessions
Handle the standard login flow to establish secure user sessions.

## Use Cases

### Resetting bugged player progress
A developer needs to reset a bugged player's progress. They ask the agent to use remove_user_storage on a specific user ID to clear their saved data.

### Checking nickname safety
A moderator sees a suspicious nickname. The agent uses check_content_security to see if it violates Douyin's community guidelines.

### Fetching player rankings
A player wants to see their rank. Use get_game_rank to pull the current leaderboard standing for a specific game mode.

### Summarizing weekly performance
A team needs a weekly report. Ask the agent to pull DAU and retention data using get_analytics to summarize the last week's performance.

## Benefits

- Automate cloud saves: Use set_user_storage to persist player progress without writing extra backend boilerplate.
- Faster analytics: Get DAU and retention trends instantly with get_analytics instead of manual exports.
- Easier moderation: Use check_content_security to flag policy violations before they hit your live game.
- Dynamic leaderboards: Update and fetch rankings with submit_score and get_game_rank to keep competition active.
- Simplified auth: Handle the Douyin login flow easily by using code2session to manage user sessions.

## How It Works

The bottom line is you get a conversational way to manage your game's backend data without touching the raw API.

1. Subscribe to the Connector and provide your Douyin App ID and Secret.
2. Connect your preferred AI client like Claude, Cursor, or Windsurf.
3. Ask your agent to perform tasks like fetching analytics or saving user data.

## Frequently Asked Questions

**What does the Douyin Mini-Game MCP actually do?**
It connects your game's backend to your AI client. You can manage player saves, check leaderboards, and see analytics without leaving your chat interface.

**Can I use this to manage my game's cloud storage?**
Yes. You can save, load, and delete player data like progress and settings using the cloud storage tools.

**How does this help with content moderation?**
It lets your agent check user-generated content against Douyin's safety policies automatically, helping you keep your game compliant.

**Can I see my game's analytics with this Connector?**
Yes, you can pull metrics like DAU and retention rates to see how your game is performing in real-time.

**Is this for all types of Douyin content?**
No, this is specifically for Douyin Mini-Games. It won't work for short videos or other non-game content.

**Do I need to write code to use this?**
No. Once you've connected the Connector, you just use natural language to tell your AI client what to do.

**How do I get my Douyin Mini-Game App ID and Secret?**
Register at the [Douyin Open Platform](https://developer.open-douyin.com/), 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.