Skip to main content
Glama
jhw7500

Email MCP Server

by jhw7500

search_emails

Search emails by keyword in subject and sender fields to find specific messages in your inbox. Set a limit to control results.

Instructions

키워드로 이메일을 검색합니다. 제목과 발신자에서 검색합니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYes검색 키워드
limitNo검색 범위 최근 N건 (기본: 50)

Implementation Reference

  • The handler logic for the 'search_emails' tool, which validates inputs, fetches email headers, and filters them by keyword.
    case "search_emails": {
      if (!args.keyword || typeof args.keyword !== "string") {
        return { content: [{ type: "text" as const, text: "오류: keyword는 필수 문자열 파라미터입니다." }], isError: true };
      }
      const keyword = args.keyword.toLowerCase();
      const limit = Math.min((args.limit as number) || 50, 100);
      const headers = await withConnection(config, (client) => client.list(limit));
      const matched = headers.filter(
        (h) =>
          h.subject.toLowerCase().includes(keyword) ||
          h.from.toLowerCase().includes(keyword)
      );
      return {
        content: [
          {
            type: "text" as const,
            text: `"${args.keyword}" 검색 결과 (${matched.length}건):\n\n${formatEmailList(matched)}`,
          },
        ],
      };
    }
  • The schema definition for the 'search_emails' tool, specifying input arguments.
    {
      name: "search_emails",
      description: "키워드로 이메일을 검색합니다. 제목과 발신자에서 검색합니다.",
      inputSchema: {
        type: "object" as const,
        properties: {
          keyword: { type: "string", description: "검색 키워드" },
          limit: { type: "number", description: "검색 범위 최근 N건 (기본: 50)" },
        },
        required: ["keyword"],
      },
    },

Latest Blog Posts

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/jhw7500/email-mcp-server'

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