mcp-ps-store
Integrates with the PlayStation Network (PSN) internal API to retrieve a user's gaming history, including playtime, trophy progress, purchased library, and profile information, allowing AI assistants to make personalized game recommendations.
Leverages Sony's PSN authentication system using an NPSSO cookie to access the internal PlayStation mobile app API for reading account data.
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., "@mcp-ps-storeRecommend a game based on my taste profile"
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.
mcp-ps-store
MCP server that exposes a PlayStation Network account's own gaming history — playtime, trophy progress, purchased library — so an AI assistant can recommend games from real data instead of guesswork.
Русская версия: README.ru.md.
About
PSN has no public API. This server talks to the same internal API the PlayStation mobile app uses, authenticating with an NPSSO cookie taken from a browser session. Every request is a read; nothing is ever written back to the account.
The layout follows a layered architecture: an API layer (MCP tools), a core layer (services, repositories, DTOs), a DI container and an infrastructure layer.
Core technologies
Language: Python 3.11+
Protocol: Model Context Protocol (
mcp)HTTP client: httpx (async)
DI container:
dependency-injectorSettings:
pydantic-settingsDependency management: Poetry
Testing: Pytest,
pytest-asyncio
Related MCP server: PersonalizationMCP
What it exposes
Tool | What it is for |
| The main one: a single digest — top games by hours, favourite franchises, playstyle habits (average session, share of deep dives, platinum rate), games close to 100%, games abandoned after an hour, and purchases never launched. Start here for any recommendation question. |
| Filterable game list: search by title, sort by hours / last played / trophy progress, filter by platform, hours, dates and progress. |
| Every trophy of one game: earned or not, date, rarity, share of players who have it. |
| What is already bought or claimed through PS Plus, with hours where known — so nothing already owned gets recommended. |
| What was launched most recently. |
| Online ID, PS Plus, trophy level, lifetime trophy counts. |
| Drops the response cache (PSN answers are cached for 10 minutes). |
Plus a recommend_games prompt — a ready-made "build my profile and recommend games"
scenario that takes an optional steer such as "something short" or "co-op for two".
Quick start
Python 3.11+ is required.
1. Install
With Poetry:
poetry installOr with a plain virtualenv:
python3.11 -m venv .venv && .venv/bin/pip install -e .2. Sign in to PSN
Sign in at https://www.playstation.com in a browser.
Open https://ca.account.sony.com/api/v1/ssocookie — it returns
{"npsso":"..."}.Copy the 64-character
npssovalue and run:
poetry run psn-login PASTE_NPSSO_HERETokens go to ~/.mcp-ps-store/tokens.json with 0600 permissions.
About session lifetime. The access token lives an hour and the refresh token only ten
days, but the NPSSO itself lives about two months. The NPSSO is therefore stored next to
the tokens, and the server re-authenticates on its own when the refresh token dies. In
practice one psn-login lasts about 60 days.
3. Check it works
poetry run psn-doctorIt prints the account name, how many games are visible and the top five by hours.
Connecting a client
Claude Code
claude mcp add ps-store -- /path/to/mcp-ps-store/.venv/bin/python -m app.mainClaude Desktop
In claude_desktop_config.json:
{
"mcpServers": {
"ps-store": {
"command": "/path/to/mcp-ps-store/.venv/bin/python",
"args": ["-m", "app.main"],
"cwd": "/path/to/mcp-ps-store"
}
}
}Codex CLI
Codex speaks stdio to local MCP servers, so it works the same way. Either run
codex mcp add, or add this to ~/.codex/config.toml:
[mcp_servers.ps-store]
command = "/path/to/mcp-ps-store/.venv/bin/python"
args = ["-m", "app.main"]
cwd = "/path/to/mcp-ps-store"Check it with /mcp inside a Codex session.
ChatGPT
ChatGPT cannot launch a local process. Custom connectors are added in Developer mode (Settings → Apps → Advanced) and must be a public HTTPS endpoint speaking SSE or Streamable HTTP. So the server has to be switched to HTTP transport and published:
PSN_MCP_TRANSPORT=streamable-http PSN_MCP_PORT=8000 poetry run mcp-ps-storeThen expose http://127.0.0.1:8000/mcp over HTTPS — with OpenAI's Secure MCP Tunnel, or
a tunnel such as cloudflared / ngrok — and add the resulting URL as a custom connector.
This publishes your PSN history to whoever finds the URL. The server has no authentication of its own, so put the tunnel behind auth, keep it running only while you need it, and prefer Codex CLI if a local client will do.
Configuration
All settings are read from the environment or a .env file (see .env.example).
Variable | Default | Meaning |
| — | NPSSO cookie. An alternative to |
|
| Where tokens are cached. |
|
| How long PSN responses are reused, in seconds. |
|
| Locale used in store.playstation.com links. |
|
| HTTP timeout for PSN requests, in seconds. |
|
|
|
|
| Bind address for the HTTP transports. |
|
| Port for the HTTP transports. |
Limitations
Playtime exists only for PS4 / PS5 / PC versions. PSN reports PS3 and Vita games with trophies only, so they appear with
hours: null.There is no PS Store catalogue here. The store is entirely client-side, and its GraphQL API only accepts persisted queries whose hashes Sony rotates on every deploy — keeping that working is not realistic. Recommendation candidates come from the model's own knowledge of games, while
psn_owned_gamesstops it suggesting something already bought.The purchased library goes through PSN's private GraphQL API. If Sony changes the query, that one tool stops working; everything else keeps running and the digest gains a
backlog_unavailablenote.Playtime and trophies are joined by title, so a re-release can merge with the original when they share a trophy set. Editions, platform suffixes and roman numerals are normalised away on purpose —
Alan Wake IIandAlan Wake 2are one game.The API is unofficial: Sony can change it at any time.
Project structure
.
├── app/
│ ├── api/ # MCP layer: tools, prompts, serialisers, tool errors
│ │ ├── games/
│ │ ├── profile/
│ │ └── taste/
│ ├── core/ # Business logic: services, repositories, DTOs
│ │ ├── auth/ # NPSSO -> tokens, refresh, re-login
│ │ ├── games/ # Library, playtime/trophy merge, name normalisation
│ │ ├── profile/ # Account profile and trophy summary
│ │ └── taste/ # Taste digest aggregation
│ ├── di/ # DI containers and providers
│ ├── infra/adapters/ # HTTP client, token storage, TTL cache
│ ├── cli.py # psn-login, psn-doctor
│ └── main.py # MCP server entry point
├── settings/ # pydantic-settings configuration
├── tests/
│ ├── core/ # Merge and aggregation tests
│ └── factories/ # Builders for test data
└── pyproject.tomlDevelopment
poetry run pytest # unit tests; no network and no account needed
poetry run psn-doctor # live check against the signed-in accountThis 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
- AlicenseAqualityDmaintenanceEnables AI assistants to access and analyze your Hevy workout data, including workout history, exercise progress, personal records, and routines.4463MIT
- Alicense-qualityFmaintenanceEnables AI assistants to access and interact with personal data from platforms like Steam, YouTube, Bilibili, Spotify, and Reddit for personalized, context-aware interactions.58MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to directly access and analyze Strava activity data, including runs, rides, and swims, through natural language queries.410MIT
- Alicense-qualityBmaintenanceSyncs Epic/GOG/Steam game libraries with Chinese metadata, enabling AI agents to recommend games through natural language conversation.1MIT
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Connect your Player's Bank account to AI via Brazil's Open Finance: balances, statements, cards, inv
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
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/murzin-ml/mcp-ps-store'
If you have feedback or need assistance with the MCP directory API, please join our Discord server