Custom Gemini with Backend API / MCP / A2A interactions

We want to achieve below flow :

User will come to https://gemini.google.com/app .

  • User will ask user query
  • Gemini will decide if Backend Tool API / MCP Tool has to be invoked or will be served without Backend-API/ MCP tool
  • If Backend-API/ MCP tool is necessary then Backend-API/ MCP tool will be invoked and it will give response back and rended by Gemini.
  • In case of generic queries ( not served by Backend-API/ MCP tool ) , Gemini will provide response.

Note: We don’t want to implement our own chat interface. User Interaction and response rendering needs to be done in https://gemini.google.com/app or Gemini Gems only.

Basically we want our own flavored Gemini which interacts with our backend services / MCP tools.

Any help will be really appreciated.

@Dinesh_Vyas ,

welcome to the community,

from what you described above i think you are looking to create a chat bot/agent with MCP Tool

this cannot be achieved by a gemini app at this point.

you can use google ADK to quickly build this and test and deploy with very little effort.

you can also use BUILD feature in AI studio to speedup the development for you where it can generate the entire UI and api for you and you can deploy this with a click of a button.

1 Like

Yeah there’s probably a tutorial about how to do this. You could probably vibe code it in a day.