Mr. Magic MCP Server
by mrnajiboy
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | Override server port. Default varies by transport (3444 for MCP HTTP, 3333 for JSON HTTP). | |
| LOG_LEVEL | No | Verbosity: error, warn, info, debug. Default: info. | |
| CF_API_TOKEN | No | Cloudflare API token with KV:Edit permission (Cloudflare KV backend). | |
| MELON_COOKIE | No | Optional. Pin a session cookie for consistent Melon results. | |
| CF_ACCOUNT_ID | No | Cloudflare account ID (Cloudflare KV backend). | |
| MR_MAGIC_ROOT | No | Override the project root used for .env and .cache path resolution. | |
| GENIUS_CLIENT_ID | No | OAuth client ID for Genius auto-refresh (recommended). Get from https://genius.com/api-clients. | |
| MR_MAGIC_ENV_PATH | No | Point to a specific .env file instead of project root/.env. | |
| CF_KV_NAMESPACE_ID | No | Cloudflare KV namespace ID (Cloudflare KV backend). | |
| GENIUS_DIRECT_TOKEN | No | Static direct bearer token for Genius. Used when client credentials are unavailable. | |
| MR_MAGIC_EXPORT_DIR | No | Absolute path for local exports. Required when backend is local. | |
| GENIUS_CLIENT_SECRET | No | OAuth client secret for Genius auto-refresh (recommended). | |
| MR_MAGIC_QUIET_STDIO | No | Set to '1' to suppress non-error stdout logs. Recommended under stdio MCP clients. | |
| MR_MAGIC_SESSIONLESS | No | Set to '1' to force sessionless mode on the MCP Streamable HTTP server. | |
| MUSIXMATCH_AUTO_FETCH | No | Set to '1' to attempt headless token re-fetch when no token is found. | |
| MR_MAGIC_ALLOWED_HOSTS | No | Comma-separated extra hostnames allowed for DNS rebinding protection. | |
| MUSIXMATCH_TOKEN_CACHE | No | Path to the on-disk cache file. Default: .cache/musixmatch-token.json. | |
| UPSTASH_REDIS_REST_URL | No | Upstash Redis KV backend URL. Also used for export backend when MR_MAGIC_EXPORT_BACKEND=redis. | |
| MR_MAGIC_EXPORT_BACKEND | No | Storage backend for exports: local, inline, or redis. | |
| MUSIXMATCH_DIRECT_TOKEN | No | Static bearer token for Musixmatch. Recommended for production/ephemeral hosts. | |
| MUSIXMATCH_TOKEN_KV_KEY | No | KV key name for the Musixmatch token store. Default: mr-magic:musixmatch-token. | |
| MR_MAGIC_HTTP_TIMEOUT_MS | No | Global outbound HTTP timeout in milliseconds. Default: 10000. | |
| UPSTASH_REDIS_REST_TOKEN | No | Upstash Redis KV bearer token. | |
| MR_MAGIC_DOWNLOAD_BASE_URL | No | Public base URL for download links, e.g. https://lyrics.example.com. | |
| MR_MAGIC_EXPORT_TTL_SECONDS | No | TTL for local and redis backends (seconds). Default: 3600. | |
| MR_MAGIC_TOOL_ARG_CHUNK_SIZE | No | Chunk size (chars) when chunk logging is enabled. Default: 400. | |
| MR_MAGIC_LOG_TOOL_ARGS_CHUNKS | No | Set to '1' to emit chunk-by-chunk MCP tool argument previews. | |
| MR_MAGIC_MCP_HTTP_DIAGNOSTICS | No | Set to '1' to log enriched request metadata at the MCP HTTP transport boundary. | |
| MR_MAGIC_SDK_REPRO_HTTP_DEBUG | No | Set to '1' for verbose HTTP traces in the SDK repro harness script. | |
| AIRTABLE_PERSONAL_ACCESS_TOKEN | No | Required for push_catalog_to_airtable. Generate with data.records:write scope. | |
| MUSIXMATCH_TOKEN_KV_TTL_SECONDS | No | Token TTL in the KV store (seconds). Default: 2592000 (30 days). | |
| MR_MAGIC_INLINE_PAYLOAD_MAX_CHARS | No | Character threshold for auto-promotion to reference transport. Default: 1500. |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
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/mrnajiboy/mr-magic-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server