AI: Add support for Model Context Protocol (MCP) #2332

Open
opened 2026-02-20 01:09:52 -05:00 by deekerman · 8 comments
Owner

Originally created by @lastzero on GitHub (May 24, 2025).

The MCP specifies a JSON-RPC 2.0-based API that enables Large Language Models (LLMs) to communicate with external tools and data sources, reducing the need for custom integrations.

More information:

Originally created by @lastzero on GitHub (May 24, 2025). **The MCP specifies a JSON-RPC 2.0-based API that enables Large Language Models (LLMs) to communicate with external tools and data sources, reducing the need for custom integrations.** More information: - https://modelcontextprotocol.io/introduction - https://www.anthropic.com/news/model-context-protocol - https://github.com/modelcontextprotocol - https://en.wikipedia.org/wiki/Model_Context_Protocol
Author
Owner

@srikary12 commented on GitHub (Jun 1, 2025):

Would like to work on this.

@srikary12 commented on GitHub (Jun 1, 2025): Would like to work on this.
Author
Owner

@lastzero commented on GitHub (Jun 26, 2025):

@srikary12 That's awesome! Sorry for the delayed response. I suggest to wait with coding until the following pull request (PR) is merged, as it includes many changes to the existing AI-related packages:

The first step is to gather the relevant specifications so we know exactly what needs to be implemented. Before you implement them, I'd be happy to chat with you or set up a call to provide some guidance and give you a better understanding. Feel free to reach out to me via Element/Matrix chat! 💬

@lastzero commented on GitHub (Jun 26, 2025): @srikary12 That's awesome! Sorry for the delayed response. I suggest to wait with coding until the following pull request (PR) is merged, as it includes many changes to the existing AI-related packages: - https://github.com/photoprism/photoprism/pull/5011 The first step is to gather the relevant specifications so we know exactly what needs to be implemented. Before you implement them, I'd be happy to chat with you or set up a call to provide some guidance and give you a better understanding. Feel free to reach out to me via [Element/Matrix chat](https://link.photoprism.app/chat)! 💬
Author
Owner

@srikary12 commented on GitHub (Jun 26, 2025):

Sure,

I'll wait for it merge.

@srikary12 commented on GitHub (Jun 26, 2025): Sure, I'll wait for it merge.
Author
Owner

@srikary12 commented on GitHub (Jul 2, 2025):

The official stable go sdk is available now. Will start working once the PR is merged.

@srikary12 commented on GitHub (Jul 2, 2025): The official stable go sdk is available now. Will start working once the PR is merged.
Author
Owner

@lastzero commented on GitHub (Aug 6, 2025):

Here's a great blog post by the Docker team about the security of MCP implementations and the standard itself:

Image

@lastzero commented on GitHub (Aug 6, 2025): Here's a great blog post by the Docker team about the security of MCP implementations and the standard itself: - [MCP Horror Stories: The Security Issues Threatening AI Infrastructure](https://www.docker.com/blog/mcp-security-issues-threatening-ai-infrastructure/) ![Image](https://github.com/user-attachments/assets/eb89bcb1-9eb2-40bd-911d-921d0fefa512)
Author
Owner

@srikary12 commented on GitHub (Aug 6, 2025):

Good article, I'll keep these in my mind. Looks the the pre req PR is merged. I'll start working on this asap.

@srikary12 commented on GitHub (Aug 6, 2025): Good article, I'll keep these in my mind. Looks the the pre req PR is merged. I'll start working on this asap.
Author
Owner

@Phant0mBlade commented on GitHub (Dec 19, 2025):

Hi @srikary12 @lastzero , is there any progress on this? Any discussions that may have happened?

I think before writing any code we may need to discuss of what exactly we want and how to proceed.

There are some observations I can present (albeit very rough) if there has not been any progress. I have created a very rough document on this here. If you have time please skim through it once.

Edit: I think writing it here may be better instead of linking it. Edit continues...

  1. I propose we have different repository for this MCP server. There are multiple such implementations in https://hub.docker.com/mcp , one can look at the mcp-grafana repo there.
  2. From skimming through the repo and going through the MCP docs, I believe creating a server on itself will not be really hard. It will be the tools implementation, client interaction and different JSON templates required, is what will take time not only in actual code but also in design.
  3. Authentication and role/permissions based access will also be something we have to look into. I have seen mcp-grafana implementation but I am not sure how this will go with PhotoPrism.
  4. I know there will be feature additions in front-end too to actually give end user options to use them, but I have not given them much thought. So any discussion on front-end, I may be useless.

Edit ends.

Best Regards,
Phant0mBlade

@Phant0mBlade commented on GitHub (Dec 19, 2025): Hi @srikary12 @lastzero , is there any progress on this? Any discussions that may have happened? I think before writing any code we may need to discuss of what exactly we want and how to proceed. ~~There are some observations I can present (albeit very rough) if there has not been any progress. I have created a very rough document on this [here](https://github.com/Phant0mBlade/photoprism/blob/task/mcp_support/MCP_server_discussion.md). If you have time please skim through it once.~~ Edit: I think writing it here may be better instead of linking it. Edit continues... 1. I propose we have different repository for this MCP server. There are multiple such implementations in https://hub.docker.com/mcp , one can look at the mcp-grafana repo there. 2. From skimming through the repo and going through the MCP docs, I believe creating a server on itself will not be really hard. It will be the tools implementation, client interaction and different JSON templates required, is what will take time not only in actual code but also in design. 3. Authentication and role/permissions based access will also be something we have to look into. I have seen mcp-grafana implementation but I am not sure how this will go with PhotoPrism. 4. I know there will be feature additions in front-end too to actually give end user options to use them, but I have not given them much thought. So any discussion on front-end, I may be useless. Edit ends. Best Regards, Phant0mBlade
Author
Owner

@srikary12 commented on GitHub (Dec 24, 2025):

@Phant0mBlade started working on these. will take a look at the other mcp servers.

@srikary12 commented on GitHub (Dec 24, 2025): @Phant0mBlade started working on these. will take a look at the other mcp servers.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/photoprism#2332
No description provided.