playfab mcp server
A server that enables LLMs (like Claude and VSCode Copilot) to interact with Azure Cosmos DB data through natural language queries, acting as a translator between AI assistants and your database.
A server that enables LLMs (like Claude and VSCode Copilot) to interact with Azure Cosmos DB data through natural language queries, acting as a translator between AI assistants and your database.
This server is a middleware that enables large language models (like Claude and VS Code) to interact directly with PlayFab services. Acting as a secure and efficient translator, it connects your AI assistant with various PlayFab functionalities, such as item search, segment inquiries, player profile lookups, inventory management, and PlayFab ID conversion.
You: "Show me the latest 10 items."
Claude: *calls the PlayFab search_items API and returns the results in plain text*
This server leverages the Model Context Protocol (MCP) to establish a universal interface between AI models and PlayFab services. Although MCP is designed to support any AI model, it is currently available as a developer preview.
Follow these steps to get started:
Obtain your PlayFab Title ID and Developer Secret Key from the PlayFab Game Manager, then create a .env
file in the project root with the following content (replace the placeholders with your actual credentials):
PLAYFAB_TITLE_ID=
PLAYFAB_DEV_SECRET_KEY=
npm install
npm run build
dist
folder and start the server with:npm start
PlayFab Server running on stdio
To use the PlayFab MCP server with VS Code Insiders and GitHub Copilot Agent Mode, follow these steps:
mcp.json
file from this repository into your folder and update the values according to your environment.Open Claude Desktop and navigate to File → Settings → Developer → Edit Config. Then, replace the claude_desktop_config
file content with the following snippet:
{
"mcpServers": {
"playfab": {
"command": "node",
"args": [ "C:/Path/To/playfab-mcp/dist/index.js" ], // Specify the path to your PlayFab MCP server file
"env": {
"PLAYFAB_TITLE_ID": "Your PlayFab Title ID",
"PLAYFAB_DEV_SECRET_KEY": "Your PlayFab Developer Secret Key"
}
}
}
}
With these steps, you have successfully configured the PlayFab MCP server for use with your LLM client, allowing seamless interaction with PlayFab's services.