Skip to main content
Glama

AgentMail

by agentmail-to
README.md801 B
# AgentMail Toolkit The AgentMail Toolkit integrates popular agent frameworks and protocols including OpenAI Agents SDK, Vercel AI SDK, and Model Context Protocol (MCP) with the AgentMail API. ## Setup Get your API key from [AgentMail](https://agentmail.to) ### Installation ```sh npm install agentmail-toolkit ``` ### Configuration ```sh export AGENTMAIL_API_KEY=your-api-key ``` ### Usage ```typescript import { openai } from '@ai-sdk/openai' import { AgentMailToolkit } from 'agentmail-toolkit/ai-sdk' import { streamText } from 'ai' const result = streamText({ model: openai('gpt-4o'), messages, system: 'You are an email agent created by AgentMail that can create and manage inboxes as well as send and receive emails.', tools: new AgentMailToolkit().getTools(), }) ```

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/agentmail-to/agentmail-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server