flickr-mcp-server
Provides tools for managing photos, albums, groups, and contacts on Flickr, including searching, tagging, commenting, and organizing your Flickr library.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@flickr-mcp-serverShow me my photos not in any album"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Flickr MCP Server
An MCP (Model Context Protocol) server that connects AI assistants to the Flickr API. Manage albums, tag photos, and organize your Flickr library through natural language.
Features
27 tools covering photo, album, group, and social management:
Photo Tools
Tool | Description | Read/Write |
| Search photos by keyword, tags, date range | Read |
| Get detailed photo metadata | Read |
| Get image URLs for all available sizes | Read |
| Get camera & EXIF metadata for a photo | Read |
| Get photos from Flickr Explore (interestingness) | Read |
| List your own photos (including private) | Read |
| List photos not in any album | Read |
| Replace all tags on a photo | Write |
| Append tags to a photo | Write |
| Update photo title and description | Write |
| Set photo license (All Rights Reserved, CC, etc.) | Write |
| Set photo visibility and permissions | Write |
| Add a photo to your favorites (like) | Write |
| Remove a photo from your favorites (unlike) | Write |
| Post a comment on a photo | Write |
Album Tools
Tool | Description | Read/Write |
| List all albums | Read |
| List photos in an album | Read |
| Create a new album | Write |
| Add a photo to an album | Write |
| Remove a photo from an album | Write |
| Update album title and description | Write |
Group Tools
Tool | Description | Read/Write |
| List all groups you've joined | Read |
| Search for groups by keyword | Read |
| Submit a photo to a group pool | Write |
| Leave a group | Delete |
Contact Tools
Tool | Description | Read/Write |
| Follow a user (add as contact) | Write |
| Unfollow a user (remove contact) | Write |
All list/search tools return thumbnail and medium image URLs for AI-powered visual analysis.
Related MCP server: Notion MCP Server
Prerequisites
Node.js >= 18
A Flickr account
Flickr API key (apply here)
Setup
1. Clone and install
git clone https://github.com/chochinlu/flickr-mcp-server.git
cd flickr-mcp-server
npm install2. Get your Flickr API key
Go to Flickr App Garden
Create a new app to get your API Key and API Secret
Create a
.envfile:
cp .env.example .envFill in
FLICKR_API_KEYandFLICKR_API_SECRETin.env
3. Authenticate with OAuth
Run the interactive setup script:
npm run oauth-setupThis will:
Generate an authorization URL
Open Flickr in your browser to grant access
Ask you to enter the verification code
Save the OAuth tokens to
.env
Flickr OAuth tokens never expire -- you only need to do this once.
4. Build
npm run build5. Configure your MCP client
Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"flickr": {
"command": "node",
"args": ["/absolute/path/to/flickr-mcp-server/dist/index.js"]
}
}
}Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"flickr": {
"command": "node",
"args": ["/absolute/path/to/flickr-mcp-server/dist/index.js"]
}
}
}Usage Examples
Once connected, you can ask your AI assistant things like:
"List all my Flickr albums"
"Show me photos not in any album"
"Search my photos tagged with
travel""Add tags
tokyo,japan,2024to photo 12345678""Create a new album called 'Tokyo Trip' with photo 12345678 as the cover"
"Move these photos into the Tokyo Trip album"
"List all groups I've joined"
"Submit this photo to the Street Photography group"
"Leave all inactive groups with less than 100 photos"
"Like this photo and follow the photographer"
"Add this photo to my favorites"
Project Structure
src/
index.ts # MCP server entry point (stdio transport)
config.ts # Environment variable validation (Zod)
flickr-client.ts # Flickr API client with rate limiting
tools/
photos.ts # Photo management tools (incl. favorites)
albums.ts # Album management tools
groups.ts # Group management tools
contacts.ts # Contact/follow tools
auth/
oauth-setup.ts # One-time OAuth setup CLI
scripts/
batch-set-license.ts # Batch update all photos to a specified licenseAPI Rate Limits
Flickr allows 3,600 requests/hour (~1 req/sec)
The client enforces a 1-second minimum interval between requests
List endpoints return up to 500 items per page with pagination support
License
MIT
Flickr MCP Server (正體中文)
一個 MCP (Model Context Protocol) 伺服器,讓 AI 助手能透過 Flickr API 管理你的相簿、標記照片、整理照片庫。
功能
26 個工具,涵蓋照片、相簿、群組與社交管理:
照片工具
工具 | 功能 | 讀/寫 |
| 依關鍵字、標籤、日期範圍搜尋照片 | 讀 |
| 取得照片詳細資訊 | 讀 |
| 取得照片各尺寸的圖片 URL | 讀 |
| 取得照片的相機與 EXIF 資訊 | 讀 |
| 取得 Flickr Explore 精選照片 | 讀 |
| 列出自己的照片(含私人照片) | 讀 |
| 列出未歸入任何相簿的照片 | 讀 |
| 設定照片標籤(覆蓋原有標籤) | 寫 |
| 新增標籤(不覆蓋) | 寫 |
| 更新照片標題與描述 | 寫 |
| 設定照片授權條款(All Rights Reserved、CC 等) | 寫 |
| 設定照片可見性與權限(公開/私人) | 寫 |
| 將照片加入最愛(按讚) | 寫 |
| 從最愛移除照片(取消按讚) | 寫 |
| 在照片下發布留言 | 寫 |
相簿工具
工具 | 功能 | 讀/寫 |
| 列出所有相簿 | 讀 |
| 列出相簿內照片 | 讀 |
| 建立新相簿 | 寫 |
| 將照片加入相簿 | 寫 |
| 從相簿移除照片 | 寫 |
| 修改相簿標題與描述 | 寫 |
群組工具
工具 | 功能 | 讀/寫 |
| 列出已加入的所有群組 | 讀 |
| 依關鍵字搜尋群組 | 讀 |
| 將照片投稿到群組 | 寫 |
| 退出群組 | 刪除 |
聯絡人工具
工具 | 功能 | 讀/寫 |
| 追蹤使用者(加入聯絡人) | 寫 |
| 取消追蹤(移除聯絡人) | 寫 |
所有列表/搜尋工具都會回傳縮圖與中等尺寸圖片 URL,方便 AI 進行視覺分析。
前置需求
Node.js >= 18
Flickr 帳號
Flickr API 金鑰(在此申請)
安裝設定
1. 下載並安裝
git clone https://github.com/chochinlu/flickr-mcp-server.git
cd flickr-mcp-server
npm install2. 取得 Flickr API 金鑰
前往 Flickr App Garden 建立應用程式
取得 API Key 與 API Secret
建立
.env檔案:
cp .env.example .env在
.env中填入FLICKR_API_KEY和FLICKR_API_SECRET
3. OAuth 認證
執行互動式設定腳本:
npm run oauth-setup腳本會引導你:
產生授權 URL
在瀏覽器中開啟 Flickr 進行授權
輸入頁面上顯示的驗證碼
自動將 OAuth token 存入
.env
Flickr 的 OAuth token 永不過期,只需設定一次。
4. 編譯
npm run build5. 設定 MCP 用戶端
Claude Code
在專案的 .mcp.json 中加入:
{
"mcpServers": {
"flickr": {
"command": "node",
"args": ["/absolute/path/to/flickr-mcp-server/dist/index.js"]
}
}
}Claude Desktop
在 claude_desktop_config.json 中加入:
{
"mcpServers": {
"flickr": {
"command": "node",
"args": ["/absolute/path/to/flickr-mcp-server/dist/index.js"]
}
}
}使用範例
連線後,你可以用自然語言請 AI 助手幫你:
「列出我所有的 Flickr 相簿」
「找出沒有歸入任何相簿的照片」
「搜尋標記了
travel的照片」「幫照片 12345678 加上
tokyo、japan、2024標籤」「建立一個叫『東京之旅』的新相簿,用照片 12345678 當封面」
「把這些照片移到東京之旅相簿」
「列出我加入的所有群組」
「把這張照片投稿到街拍群組」
「退出所有照片數不到 100 的不活躍群組」
「幫我對這張照片按讚,然後追蹤這個攝影師」
「把這張照片加入我的最愛」
API 限制
Flickr 允許每小時 3,600 次請求(約每秒 1 次)
Client 內建 1 秒最小間隔的速率限制
列表類 API 每頁最多 500 筆,支援分頁
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/chochinlu/flickr-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server