tbarron-xyz/mcp-irc-ts
3.3
If you are the rightful owner of mcp-irc-ts 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.
MCP-IRC-TS is a server that acts as an IRC client, allowing an MCP client to communicate with the world via IRC.
Tools
6
Resources
0
Prompts
0
mcp-irc-ts
MCP Server as IRC Client in Typescript. Allows an MCP client to talk to the world via IRC.
Launching the MCP server and IRC Client
npx mcp-irc --url irc.libera.chat --port 6697 --mcpPort 3000 --nick mc --randomize-nick-suffix -n 1000
Given no args, it connects to an IRC server at ircs://irc.libera.chat:6697/
and serves an MCP server at port 3000.
Using the MCP server
Tools
getMessages()
- Gets a JSON stringified list of the lastn
(default 100) messages in the form{ from: from, to: to, message: message, time: Date.now() }
sendRaw(command, arg1[, arg2])
- sends a raw command to the serverchannels()
- returns the currently joined channels in the following schema:
{
[key: string] : {
"users" : {
[key: string] : ""
},
...
}
}[]
Commonly used cases of sendRaw
have been given their own utility functions:
join(channel)
- joins a channelpart(channel)
- leaves a channelprivmsg(target, message)
- sends a messages to a channel or a DM to a user