matyo91/composio-mcp
If you are the rightful owner of composio-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Composio PHP MCP Server is a server setup that integrates with the Composio platform to manage and execute various actions using the Model Context Protocol (MCP).
GMAIL_FETCH_EMAILS
Fetches emails from Gmail.
GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID
Fetches a Gmail message by its message ID.
GMAIL_FETCH_MESSAGE_BY_THREAD_ID
Fetches a Gmail message by its thread ID.
GMAIL_SEND_EMAIL
Sends an email using Gmail.
GOOGLECALENDAR_CREATE_EVENT
Creates an event in Google Calendar.
GOOGLECALENDAR_FIND_EVENT
Finds an event in Google Calendar.
GOOGLECALENDAR_FIND_FREE_SLOTS
Finds free slots in Google Calendar.
GOOGLECALENDAR_GET_CALENDAR
Retrieves a Google Calendar.
GOOGLECALENDAR_GET_CURRENT_DATE_TIME
Gets the current date and time from Google Calendar.
GOOGLECALENDAR_LIST_CALENDARS
Lists all calendars in Google Calendar.
GOOGLECALENDAR_QUICK_ADD
Quickly adds an event to Google Calendar.
Composio PHP MCP Server
What do we do?
- Create a Composio MCP server with https://github.com/php-mcp/server
composer create-project symfony/skeleton
composer require php-mcp/server
- Add tools: Gmail and Google Calendar
Get your api key on https://composio.dev
Add actions :
make nix
php bin/console app:generate-tools \
--entityId default \
--action GMAIL_FETCH_EMAILS \
--action GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID \
--action GMAIL_FETCH_MESSAGE_BY_THREAD_ID \
--action GMAIL_SEND_EMAIL \
--action GOOGLECALENDAR_CREATE_EVENT \
--action GOOGLECALENDAR_FIND_EVENT \
--action GOOGLECALENDAR_FIND_FREE_SLOTS \
--action GOOGLECALENDAR_GET_CALENDAR \
--action GOOGLECALENDAR_GET_CURRENT_DATE_TIME \
--action GOOGLECALENDAR_LIST_CALENDARS \
--action GOOGLECALENDAR_QUICK_ADD
Composio PHP Sdk is inspired from the official Composio Javascript SDK : https://github.com/ComposioHQ/composio-js
Debug MCP server
npx @modelcontextprotocol/inspector node build/index.js
- Create an agent with neuron AI for Uniflow PHP Client
More info https://www.neuron-ai.dev
- Execute the workflow with Uniflow
flows :
- object :
env.OPENAI_API_KEY= env.COMPOSIO_API_KEY=
- text : variable : prompt
I would like to respond to important emails.
Please find important unread emails in my inbox and summarize them here (leave out details, because people are watching).
Then, find a free slot this week (May 6 2025) in my calendar that would be ideal to respond to ALL important emails and create a calendar event.
- javascript :
agent(prompt)
Resources
Composio PHP Sdk is inspired from the official Composio Javascript SDK : https://github.com/ComposioHQ/composio-js