MCP server for integrating NovelAI Image generation into AI agents.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add novelai-image --env NOVELAI_TOKEN='<NOVELAI_TOKEN>' -- uvx novelai-image-mcp~/.codex/config.toml
[mcp_servers.novelai-image]
command = "uvx"
args = ["novelai-image-mcp"]
env = { NOVELAI_TOKEN = "<NOVELAI_TOKEN>" }
# codex mcp add novelai-image --env NOVELAI_TOKEN='<NOVELAI_TOKEN>' -- uvx novelai-image-mcp~/.cursor/mcp.json
{
"mcpServers": {
"novelai-image": {
"command": "uvx",
"args": [
"novelai-image-mcp"
],
"env": {
"NOVELAI_TOKEN": "<NOVELAI_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"novelai-image": {
"type": "stdio",
"command": "uvx",
"args": [
"novelai-image-mcp"
],
"env": {
"NOVELAI_TOKEN": "<NOVELAI_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"novelai-image": {
"command": "uvx",
"args": [
"novelai-image-mcp"
],
"env": {
"NOVELAI_TOKEN": "<NOVELAI_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"novelai-image": {
"command": "uvx",
"args": [
"novelai-image-mcp"
],
"env": {
"NOVELAI_TOKEN": "<NOVELAI_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"novelai-image": {
"command": "uvx",
"args": [
"novelai-image-mcp"
],
"env": {
"NOVELAI_TOKEN": "<NOVELAI_TOKEN>"
}
}
}
}需要的环境变量
NOVELAI_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。