nano-gpt-mcp

nano-gpt-mcp

Provides access to 700+ AI models for text, image, video, and audio generation via the NanoGPT API, enabling direct use from Claude Code or any MCP-compatible client.

Category
访问服务器

README

nano-gpt-mcp

An MCP (Model Context Protocol) server for NanoGPT — giving you access to 700+ AI models for text, image, video, and audio generation directly from Claude Code or any MCP-compatible client.

What is NanoGPT?

NanoGPT is a pay-as-you-go AI gateway that provides access to models from OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, and many more — all through a single API key. No subscriptions required.

Features

Tool Description
nano_chat Chat with 700+ text models (GPT, Claude, Gemini, Llama, DeepSeek, Qwen, Mistral, etc.)
nano_generate_image Generate images (GPT Image 1.5, Flux, Stable Diffusion, Recraft, HiDream, etc.)
nano_generate_video Generate videos (Kling, Sora 2, Veo 3, Wan, MiniMax, etc.)
nano_list_models Browse available models by type (text/image/video/audio) with pricing
nano_check_balance Check your account balance

All responses include cost and remaining balance.

Setup

1. Get a NanoGPT API Key

Sign up at nano-gpt.com and get your API key from the dashboard.

2. Install

git clone https://github.com/mageaustralia/nano-gpt-mcp.git
cd nano-gpt-mcp
npm install

3. Configure Claude Code

Add to your ~/.claude/settings.json to make it available globally (all projects):

{
  "mcpServers": {
    "nano-gpt": {
      "command": "node",
      "args": ["/path/to/nano-gpt-mcp/server.mjs"],
      "env": {
        "NANO_GPT_API_KEY": "your-api-key-here"
      }
    }
  }
}

Or add to a project-specific .claude/settings.json for per-project use.

4. Restart Claude Code

The MCP server will be available after restarting Claude Code.

Usage Examples

Chat with any model

"Use nano_chat to ask GPT-4o what the best sorting algorithm is for nearly-sorted data"

"Ask DeepSeek R1 to solve this math problem using nano_chat"

"Use nano_chat with google/gemini-2.5-flash to review this code snippet"

Generate images

"Use nano_generate_image with hidream-i1-fast to create a product photo of a laptop on a white background"

"Generate an image with gpt-image-1.5: a watercolor painting of a coastal town at sunset"

"Use nano-banana to generate a logo for a coffee shop called 'Bean There'"

Generate videos

"Use nano_generate_video with kling-v26-pro to create a 5-second video of ocean waves"

"Generate a video with wan-wavespeed-25: a timelapse of flowers blooming"

List models and pricing

"Use nano_list_models to show me all image models"

"List video models on nano-gpt"

"Search for 'llama' in nano-gpt text models"

Check balance

"Check my nano-gpt balance"

Available Models (highlights)

Text (700+)

  • openai/gpt-4o, openai/gpt-4o-mini, openai/o3, openai/o4-mini
  • anthropic/claude-sonnet-4-5-20250929, anthropic/claude-opus-4
  • google/gemini-2.5-flash, google/gemini-2.5-pro
  • deepseek/deepseek-r1, deepseek/deepseek-v3
  • meta-llama/llama-3.3-70b, meta-llama/llama-4-maverick
  • qwen/qwen3-235b, mistralai/mistral-large
  • ...and hundreds more

Image (30+)

  • gpt-image-1.5 - OpenAI's latest
  • hidream-i1-fast - Fast high-quality generation
  • flux-1.1-pro - Black Forest Labs
  • recraft-v3 - Design-focused
  • stable-diffusion-3.5-large - Stability AI
  • nano-banana - Budget-friendly

Video (20+)

  • kling-v26-pro - Text & image to video with audio
  • sora-2 - OpenAI video generation
  • veo3-video - Google Veo 3
  • wan-wavespeed-25 - Fast generation
  • minimax-hailuo-02-pro - High quality

How it works

The MCP server translates tool calls into NanoGPT API requests:

  • Chat: OpenAI-compatible /v1/chat/completions endpoint
  • Images: /v1/images/generations endpoint (returns URLs or base64)
  • Videos: /v1/video/generations endpoint
  • Models: /v1/models, /v1/image-models, /v1/video-models, /v1/audio-models

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选