PlayStation Network (PSN) gaming history: playtime, trophies and purchased library.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
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.
mcp)dependency-injectorpydantic-settingspytest-asyncio| Tool | What it is for |
|---|---|
psn_taste_profile | 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. |
psn_library | Filterable game list: search by title, sort by hours / last played / trophy progress, filter by platform, hours, dates and progress. |
psn_game_trophies | Every trophy of one game: earned or not, date, rarity, share of players who have it. |
psn_owned_games | What is already bought or claimed through PS Plus, with hours where known โ so nothing already owned gets recommended. |
psn_recently_played | What was launched most recently. |
psn_profile | Online ID, PS Plus, trophy level, lifetime trophy counts. |
psn_refresh | 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".
Python 3.11+ is required.
With Poetry:
Or with a plain virtualenv:
{"npsso":"..."}.npsso value 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.
It prints the account name, how many games are visible and the top five by hours.
In claude_desktop_config.json:
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 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.
All settings are read from the environment or a .env file (see .env.example).
| Variable | Default | Meaning |
|---|---|---|
PSN_NPSSO | โ | NPSSO cookie. An alternative to psn-login: if set, the server signs in by itself. |
PSN_TOKENS_PATH | ~/.mcp-ps-store/tokens.json | Where tokens are cached. |
PSN_CACHE_TTL | 600 | How long PSN responses are reused, in seconds. |
PSN_STORE_LOCALE | en-us | Locale used in store.playstation.com links. |
PSN_REQUEST_TIMEOUT | 30 | HTTP timeout for PSN requests, in seconds. |
PSN_MCP_TRANSPORT | stdio | stdio, streamable-http or sse. |
PSN_MCP_HOST | 127.0.0.1 | Bind address for the HTTP transports. |
PSN_MCP_PORT | 8000 | Port for the HTTP transports. |
hours: null.psn_owned_games stops it suggesting something already
bought.backlog_unavailable note.Alan Wake II and Alan Wake 2 are one game.MIT โ see LICENSE.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/playstation-network)<a href="https://allmcps.com/mcp/playstation-network"><img src="https://allmcps.com/api/badge/playstation-network?style=directory" alt="PlayStation Network on AllMCPs" /></a>