AniList MCP server for accessing AniList API data
A Model Context Protocol (MCP) server that interfaces with the AniList API, allowing LLM clients to access and interact with anime, manga, character, staff, and user data from AniList.
mcp.json / claude_desktop_config.json:{
"mcpServers": {
"anilist": {
"command": "npx",
"args": ["-y", "anilist-mcp"],
"env": {
"ANILIST_TOKEN": "your_api_token"
}
}
}
}
You may remove the env object entirely, if you are not planning to use the AniList Token for operations that require login.
Follow the Local Development instructions to set up the project locally, then run:
pnpm run start:http
This will start the server on port 8081 by default. You can change the port by setting the PORT environment variable.
You can deploy this MCP server to any cloud platform that supports Node.js server applications.
You can also deploy via MCP platforms like Smithery.
When using the STDIO transport or hosting the HTTP transport server, you can pass configuration via environment variables:
ANILIST_TOKEN: (Optional) AniList API Token (Only needed for operations that require login)[!CAUTION] If you are hosting the HTTP transport server with token pre-configured, you should protect your endpoint and implement authentication before allowing users to access it. Otherwise, anyone can access your MCP server while using your AniList token.
When using the HTTP transport, user can pass configuration via HTTP headers:
Anilist-Token: (Optional) AniList API Token (Only needed for operations that require login)If the user provides the token in the header, while the server also has ANILIST_TOKEN set, the header value will take precedence.
To get an API token, follow these steps:
https://anilist.co/api/v2/oauth/pin
{clientID} with the client ID you get. It will ask you to log in and then provide you with the token to use..env file or environment variables.Can you search for anime similar to "Bocchi the Rock!"?
Can you tell me about the character Hitori Gotou? Use the AniList tools to find information.
What anime has Studio Ghibli produced? Can you list their most popular works?
This project uses pnpm as its package manager.
Clone the repository and install dependencies:
git clone https://github.com/yuna0x0/anilist-mcp.git
cd anilist-mcp
pnpm install
.env file by copying the example:cp env.example .env
.env file and add your AniList API token:ANILIST_TOKEN=your_api_token
You can use the MCP Inspector to test and debug the AniList MCP server:
npx @modelcontextprotocol/inspector -e ANILIST_TOKEN=your_api_token npx anilist-mcp
# Use this instead when Local Development
pnpm run inspector
Then open your browser to the provided URL (usually http://localhost:6274) to access the MCP Inspector interface. From there, you can:
This is particularly useful for testing your setup before connecting it to MCP clients like Claude Desktop.
Pull from GitHub Container Registry:
docker pull ghcr.io/yuna0x0/anilist-mcp
Docker build (Local Development):
docker build -t ghcr.io/yuna0x0/anilist-mcp .
Docker multi-platform build (Local Development):
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/yuna0x0/anilist-mcp .
To create an MCP Bundle for this server, run:
pnpm run pack:mcpb
This MCP server accepts your AniList API token in the .env file, environment variable or HTTP header. Keep this information secure and never commit it to version control.
This project is licensed under the MIT License - see the LICENSE file for details.
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
npx -y anilist-mcpMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-yuna0x0-anilist-mcp": {
"command": "npx",
"args": [
"-y",
"anilist-mcp"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referenceAniList works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.