Skip to main content
Glama

Discord MCP Server

discord_search_messages

Find specific messages in a Discord channel by searching with text queries and applying filters like author, date, or attachment type. Retrieve up to 25 results based on your criteria.

Instructions

Search for messages in a Discord channel with text query and filters

Input Schema

NameRequiredDescriptionDefault
afterNoSearch messages after this date (ISO format)
authorIdNoFilter by author user ID
beforeNoSearch messages before this date (ISO format)
channelIdYesThe Discord channel ID
hasAttachmentsNoFilter messages that have attachments
hasFilesNoFilter messages that have files
hasImagesNoFilter messages that have images
limitNoNumber of results to return (1-25, default: 25)
queryYesText to search for in messages

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "after": { "description": "Search messages after this date (ISO format)", "type": "string" }, "authorId": { "description": "Filter by author user ID", "type": "string" }, "before": { "description": "Search messages before this date (ISO format)", "type": "string" }, "channelId": { "description": "The Discord channel ID", "type": "string" }, "hasAttachments": { "description": "Filter messages that have attachments", "type": "boolean" }, "hasFiles": { "description": "Filter messages that have files", "type": "boolean" }, "hasImages": { "description": "Filter messages that have images", "type": "boolean" }, "limit": { "description": "Number of results to return (1-25, default: 25)", "maximum": 25, "minimum": 1, "type": "number" }, "query": { "description": "Text to search for in messages", "type": "string" } }, "required": [ "channelId", "query" ], "type": "object" }

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/RossH121/discord-mcp'

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