Skip to main content
Glama
mrnajiboy

Mr. Magic MCP Server

by mrnajiboy

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoOverride server port. Default varies by transport (3444 for MCP HTTP, 3333 for JSON HTTP).
LOG_LEVELNoVerbosity: error, warn, info, debug. Default: info.
CF_API_TOKENNoCloudflare API token with KV:Edit permission (Cloudflare KV backend).
MELON_COOKIENoOptional. Pin a session cookie for consistent Melon results.
CF_ACCOUNT_IDNoCloudflare account ID (Cloudflare KV backend).
MR_MAGIC_ROOTNoOverride the project root used for .env and .cache path resolution.
GENIUS_CLIENT_IDNoOAuth client ID for Genius auto-refresh (recommended). Get from https://genius.com/api-clients.
MR_MAGIC_ENV_PATHNoPoint to a specific .env file instead of project root/.env.
CF_KV_NAMESPACE_IDNoCloudflare KV namespace ID (Cloudflare KV backend).
GENIUS_DIRECT_TOKENNoStatic direct bearer token for Genius. Used when client credentials are unavailable.
MR_MAGIC_EXPORT_DIRNoAbsolute path for local exports. Required when backend is local.
GENIUS_CLIENT_SECRETNoOAuth client secret for Genius auto-refresh (recommended).
MR_MAGIC_QUIET_STDIONoSet to '1' to suppress non-error stdout logs. Recommended under stdio MCP clients.
MR_MAGIC_SESSIONLESSNoSet to '1' to force sessionless mode on the MCP Streamable HTTP server.
MUSIXMATCH_AUTO_FETCHNoSet to '1' to attempt headless token re-fetch when no token is found.
MR_MAGIC_ALLOWED_HOSTSNoComma-separated extra hostnames allowed for DNS rebinding protection.
MUSIXMATCH_TOKEN_CACHENoPath to the on-disk cache file. Default: .cache/musixmatch-token.json.
UPSTASH_REDIS_REST_URLNoUpstash Redis KV backend URL. Also used for export backend when MR_MAGIC_EXPORT_BACKEND=redis.
MR_MAGIC_EXPORT_BACKENDNoStorage backend for exports: local, inline, or redis.
MUSIXMATCH_DIRECT_TOKENNoStatic bearer token for Musixmatch. Recommended for production/ephemeral hosts.
MUSIXMATCH_TOKEN_KV_KEYNoKV key name for the Musixmatch token store. Default: mr-magic:musixmatch-token.
MR_MAGIC_HTTP_TIMEOUT_MSNoGlobal outbound HTTP timeout in milliseconds. Default: 10000.
UPSTASH_REDIS_REST_TOKENNoUpstash Redis KV bearer token.
MR_MAGIC_DOWNLOAD_BASE_URLNoPublic base URL for download links, e.g. https://lyrics.example.com.
MR_MAGIC_EXPORT_TTL_SECONDSNoTTL for local and redis backends (seconds). Default: 3600.
MR_MAGIC_TOOL_ARG_CHUNK_SIZENoChunk size (chars) when chunk logging is enabled. Default: 400.
MR_MAGIC_LOG_TOOL_ARGS_CHUNKSNoSet to '1' to emit chunk-by-chunk MCP tool argument previews.
MR_MAGIC_MCP_HTTP_DIAGNOSTICSNoSet to '1' to log enriched request metadata at the MCP HTTP transport boundary.
MR_MAGIC_SDK_REPRO_HTTP_DEBUGNoSet to '1' for verbose HTTP traces in the SDK repro harness script.
AIRTABLE_PERSONAL_ACCESS_TOKENNoRequired for push_catalog_to_airtable. Generate with data.records:write scope.
MUSIXMATCH_TOKEN_KV_TTL_SECONDSNoToken TTL in the KV store (seconds). Default: 2592000 (30 days).
MR_MAGIC_INLINE_PAYLOAD_MAX_CHARSNoCharacter 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

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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