
PlayStation Network
io.github.murzin-mlPublished by GitHub account murzin-mlv0.1.0Updated Oct 24, 2026
PlayStation Network (PSN) gaming history: playtime, trophies and purchased library.
Overview
Lets an assistant read your PlayStation Network gaming history — playtime, trophies and purchased library — to recommend games from real data.
- What you can do
- Exposes tools over your own PSN account: a taste profile digest (top games by hours, favourite franchises, session habits, platinum rate, abandoned games, unlaunched purchases), a filterable library, per-game trophy lists, owned games, recently played, profile summary, and a cache refresh. A recommend_games prompt bundles profile building and recommendations. All requests are reads; nothing is written back to the account.
- When to use it
- Use it when you want game recommendations grounded in what you actually played and own, rather than generic suggestions, or when you want to inspect your playtime, trophy progress and backlog. It suits a local desktop client such as Claude Code, Claude Desktop or Codex CLI.
- Requirements
- Local Python 3.11+ process installed from PyPI (mcp-ps-store) or run from source. Needs a PSN NPSSO cookie, either stored via the psn-login command or supplied as the PSN_NPSSO environment variable; optional settings include PSN_STORE_LOCALE, PSN_TOKENS_PATH, PSN_CACHE_TTL, PSN_REQUEST_TIMEOUT and the HTTP transport variables. Network access to PSN is required. Desktop only; ChatGPT cannot launch a local process.
Installation
In SourceWeft
- Open PlayStation Network in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-ps-store
MCP server for the PlayStation Network (PSN): it exposes your own gaming history — playtime, trophies, 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-injector - Settings:
pydantic-settings - Dependency management: Poetry
- Testing: Pytest,
pytest-asyncio
What it exposes
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:
Or with a plain virtualenv:
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:
Tokens 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
It prints the account name, how many games are visible and the top five by hours.
Connecting a client
Claude Code
Claude Desktop
In claude_desktop_config.json:
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:
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:
Then 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).
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
Development
License
MIT — see LICENSE.
Source: README.md at commit 9a6f981
Tools
0Version history
1- v0.1.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts