Fal.ai OpenAI Image
A server for the Fal.ai text-to-image API, powered by OpenAI's image model. Requires Fal.ai and OpenAI API keys.
Fal.ai OpenAI Image MCPサーバー
fal.aiのGPT image-1 text-to-image APIを使用して画像を生成するFastMCPサーバーです。
セットアップ
- 依存関係をインストール:
npm install
- 環境変数としてAPIキーを設定:
export FAL_KEY="your_fal_api_key_here"
export OPENAI_API_KEY="your_openai_api_key_here"
- プロジェクトをビルド:
npm run build
- サーバーを実行:
npm start
使用方法
サーバーは以下のツールを提供します:
generate_image
テキストプロンプトを使用して画像を生成します。
パラメーター:
prompt(必須): 生成する画像のテキスト説明image_size(オプション): 生成する画像のサイズ ("auto", "1024x1024", "1536x1024", "1024x1536")num_images(オプション): 生成する画像の数 (1-4)quality(オプション): 生成する画像の品質 ("auto", "low", "medium", "high")background(オプション): 背景のタイプ ("auto", "transparent", "opaque")
例:
{
"prompt": "夕暮れの静謐なサイバーパンク都市風景",
"image_size": "1024x1024",
"num_images": 1,
"quality": "high"
}
Claude Codeでの使用
Claude Codeでこのサーバーを使用するには、以下のJSONをMCP設定に追加してください:
{
"mcpServers": {
"fal-openai-image": {
"command": "node",
"args": ["/path/to/fal_openai_image1/dist/index.js"],
"env": {
"FAL_KEY": "your_fal_api_key_here",
"OPENAI_API_KEY": "your_openai_api_key_here"
}
}
}
}
または、開発モードで実行する場合:
{
"mcpServers": {
"fal-openai-image": {
"command": "npm",
"args": ["run", "dev"],
"cwd": "/path/to/fal_openai_image1",
"env": {
"FAL_KEY": "your_fal_api_key_here",
"OPENAI_API_KEY": "your_openai_api_key_here"
}
}
}
}
環境変数
FAL_KEY: 必須。fal.ai API認証用のAPIキーOPENAI_API_KEY: 必須。BYOK (Bring Your Own Key) システム用のOpenAI APIキー
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
BundlerMCP
Query information about dependencies in a Ruby project's Gemfile.
BioMCP
Enhances large language models with protein structure analysis capabilities, including active site analysis and disease-protein searches, by connecting to the RCSB Protein Data Bank.
DeepInfra API
Provides a full suite of AI tools via DeepInfra’s OpenAI-compatible API, including image generation, text processing, embeddings, and speech recognition.
Replicate Ideogram V3 Balanced
Generate images using the Ideogram V3 Balanced model on Replicate.
Jira Context MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor.
spm-mcp
iOS Swift Package Manager server written in Swift
MCP Feedback Enhanced
An MCP server for interactive user feedback and command execution in AI-assisted development, supporting both Web and Desktop interfaces.
Unleash
MCP server for managing Unleash feature flags and automate best practices.
Remote MCP Server on Cloudflare
A customizable remote MCP server for deployment on Cloudflare Workers, operating without authentication.
d2-mcp
Create, validate, and render diagrams from D2 (Declarative Diagramming) code into SVG and PNG formats.