Has anyone used docker with ADK with MCP servers? #40
Replies: 3 comments 1 reply
-
Hi! I have have docker containers running MCP servers locally. This is my docker compose file
|
Beta Was this translation helpful? Give feedback.
-
So I have done this. But is doesn't work on windows, becuase spawning process in windows throws notimplemented exception. You have to create a python script to start univicorn server, and set the if sys.platform == "win32": and use this script instead of adk web I hope this issue is addressed more correctly. |
Beta Was this translation helpful? Give feedback.
-
Response from ADK Answering Agent TLDR: Running MCP servers as separate services in Docker containers is a good approach. For deployment to Google Cloud, you should manage environment variables through the cloud service's configuration rather than copying Hi! I can provide some information on your questions about using Docker with ADK and MCP servers. Explanation of the Docker commandYou asked about the line This command is used to copy any files starting with Changes when using gcloud for deploymentWhen you deploy your application to Google Cloud using
In both cases, you would remove the MCP server as a separate serviceYour understanding is correct! Running MCP servers as separate services is a recommended pattern. The Model Context Protocol (MCP) is designed around a client-server architecture. [5] Your ADK agent acts as an MCP client and can connect to one or more MCP servers. The Your [4] https://github.com/google/adk-docs/blob/main/docs/tools/mcp-tools.md |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋
I have gotten MCP servers working with ADK but I am trying to figure out to make it work using docker so that the ADK app can be deployed anywhere.
From what i understand now, best practice would be to use docker compose so that each MCP server is a separate container.
I also found out that docker desktop has their own MCP Toolkit now which seems to be great.
Search online, this depo, and the subreddit, docker does not really seem to be something that is used right now when it comes to ADK. Or it could just be that people that are learning it (like me) does not have the skills yet to implement it.
Beta Was this translation helpful? Give feedback.
All reactions