POST requests
Send initialize, ping, tools/list, and tools/call to the MCP server URL.
Model Context Protocol
Technical reference for connecting MCP-compatible clients to MoodTrue account, mood, social, usage, and playlist capabilities.
https://mcp.moodtrue.com/mcpConnection
Configure the remote server URL in a client that supports Streamable HTTP and OAuth authorization. Available tools are determined by the scopes approved during authorization.
Add https://mcp.moodtrue.com/mcp as a remote MCP server.
Sign in to MoodTrue and review the requested permissions.
The client calls tools/list and receives only tools covered by approved scopes.
Review write and destructive actions before they are sent.
{
"mcpServers": {
"moodtrue": {
"url": "https://mcp.moodtrue.com/mcp"
}
}
}
Transport
The server accepts authenticated JSON-RPC 2.0 requests over HTTP POST. It supports protocol negotiation, health checks, tool discovery, tool calls, initialization notifications, and cancellation notifications.
Send initialize, ping, tools/list, and tools/call to the MCP server URL.
Supports 2026-07-28, 2025-11-25, 2025-06-18, and 2025-03-26.
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": {
"name": "your-client",
"version": "1.0.0"
}
}
}
Tool reference
Read tools are marked read-only. Follow operations change relationship state, while unfollow and playlist deletion are marked destructive so compatible clients can request additional confirmation.
Account identity, profile, and API consumption.
get_my_accountReturns basic information for the authenticated account.
account:readget_my_profileReturns profile, subscription, connection, and developer information.
account:readget_api_usageReturns current usage and rate-limit windows.
usage:readCurrent mood, history, and statistics.
get_current_moodReturns the authenticated user's analyzed mood and translations.
mood:readget_mood_historyReturns paginated history with optional date filters.
mood:readget_mood_statisticsReturns mood statistics for a selected period.
mood:readOwned MoodTrue playlists and tracks.
list_playlistsReturns active playlists owned by the authenticated user.
playlists:readget_playlistReturns one owned playlist and its tracks.
playlists:readdelete_playlistSoft-deletes one MoodTrue playlist and its track records.
playlists:write{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "get_current_mood",
"arguments": {}
}
}
Permissions
account:readRead the connected account and profile.
usage:readRead API usage and rate-limit windows.
mood:readRead current mood, history, and statistics.
social:readRead privacy-filtered social information.
social:writeFollow or unfollow accounts.
playlists:readRead owned playlists and tracks.
playlists:writeDelete owned MoodTrue playlists.
offline_accessAllow rotating refresh tokens.
Errors
| Code | Meaning |
|---|---|
401 | Access token is missing, expired, invalid, or revoked. |
429 | The MCP request rate limit has been reached. |
-32700 | The JSON-RPC request body could not be parsed. |
-32600 | The JSON-RPC request structure is invalid. |
-32601 | The requested protocol method does not exist. |
Social
Privacy-aware profiles, posts, moods, and relationships.
get_user_profileGet user profile
Returns a visible profile while enforcing privacy and block rules.
social:readget_user_postsGet user posts
Returns visible posts with cursor pagination.
social:readget_user_moodGet user mood
Returns mood activity when the requester is allowed to view it.
social:readget_user_followersGet user followers
Returns a privacy-filtered followers list.
social:readget_user_followingGet user following
Returns a privacy-filtered following list.
social:readfollow_userFollow user
Follows a public account as the authenticated user.
social:writeunfollow_userUnfollow user
Removes the authenticated user's follow relationship.
social:write