Jachy MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pnpm install
pnpm build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}" jachy-mcp-server -- node "<FULL_PATH_TO_JACHY_MCP_SERVER>/dist/index.js"

Replace <FULL_PATH_TO_JACHY_MCP_SERVER>/dist/index.js with the actual folder you prepared in step 1.

Required:DISCORD_BOT_TOKEN
README.md

A centralized automation hub for AI agents to interact with various services.

jachy-mcp-server

Personal MCP (Model Context Protocol) server for centralized automation tools. Provides a unified interface so nanobot, Qwen, Cursor, Claude Desktop, and other AI agents can invoke the same set of tools through a single server.

Current tools

Tool Domain Description
discord_create_forum_post Discord Creates a new post in a Discord Forum channel

Quick Start

Prerequisites

  • Node.js ≥ 22
  • pnpm ≥ 9

1 — Install dependencies

pnpm install
# or
make install

2 — Configure environment variables

cp .env.example .env
# Open .env and fill in DISCORD_BOT_TOKEN

See .env.example for descriptions and links to obtain each value.

3 — Run in development mode (hot-reload)

pnpm dev
# or
make dev

4 — Build for production

pnpm build   # compiles src/ → dist/
pnpm start   # runs dist/index.js
# or
make build && make start

Project Structure

src/
├── index.ts              Entry point — validates config, creates MCP server, registers tools
├── core/
│   ├── config.ts         Centralised env-var config; call validateConfig() at startup
│   └── httpClient.ts     Shared fetch wrapper with retry, error formatting, request logging
├── tools/
│   ├── index.ts          Single source of truth for allTools[] — only file to edit when adding a domain
│   ├── discord/
│   │   ├── index.ts      Exports discordTools[]
│   │   ├── forum.ts      discord_create_forum_post tool
│   │   └── helpers.ts    Discord REST API helpers (private to this domain)
│   └── _template/
│       ├── index.ts      Template domain index
│       ├── exampleTool.ts Template tool — copy & adapt
│       └── HOWTO.md      Step-by-step guide for adding a new tool domain
└── types/
    └── index.ts          ToolDefinition interface and shared types
tests/
└── tools/
    └── discord/
        └── forum.test.ts Unit tests for discord_create_forum_post

Adding a New Tool Domain

Full walkthrough: `src/tools/_template/HOWTO.md`

TL;DR — three steps, zero changes to src/index.ts:

Step 1 — Create your domain folder

cp -r src/tools/_template src/tools/github
mv src/tools/github/exampleTool.ts src/tools/github/createIssue.ts

Step 2 — Implement your tool

Edit createIssue.ts:

import { z } from 'zod';
import { type ToolDefinition } from '../../types/index.js';
import { config } from '../../core/config.js';       // ← env vars here
import { httpRequest } from '../../core/httpClient.js'; // ← HTTP here

const Schema = z.object({ repo: z.string(), title: z.string() });

export const githubCreateIssueTool: ToolDefinition = {
  name: 'github_create_issue',
  description: '...',
  inputSchema: { type: 'object', properties: { ... }, required: ['repo', 'title'] },
  handler: async (input) => {
    const { repo, title } = Schema.parse(input);
    // … call GitHub API …
    return `Issue created: ${url}`;
  },
};

Update src/tools/github/index.ts:

import { githubCreateIssueTool } from './createIssue.js';
export const githubTools = [githubCreateIssueTool];

Step 3 — Register in the global registry

Open src/tools/index.ts and add one line:

import { githubTools } from './github/index.js';

export const allTools: ToolDefinition[] = [
  ...discordTools,
  ...githubTools,  // ← add this
];

Done. No other file needs to change.


Architecture Rules

Rule Why
All env vars through config.* Single validation point; tests can override process.env safely
All HTTP through httpRequest() Unified retry, error format, and logging
Input validated with Zod in every handler Type safety at runtime; descriptive errors for the agent
console.log forbidden; use console.error MCP uses stdout for JSON-RPC — any extra stdout breaks the protocol

Integrating with AI Agents

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "jachy-mcp-server": {
      "command": "node",
      "args": ["/absolute/path/to/jachy-mcp-server/dist/index.js"],
      "env": {
        "DISCORD_BOT_TOKEN": "your-token-here"
      }
    }
  }
}

Cursor

Add to your Cursor MCP settings (~/.cursor/mcp.json or workspace .cursor/mcp.json):

{
  "mcpServers": {
    "jachy-mcp-server": {
      "command": "node",
      "args": ["/absolute/path/to/jachy-mcp-server/dist/index.js"],
      "env": {
        "DISCORD_BOT_TOKEN": "your-token-here"
      }
    }
  }
}

nanobot

In your nanobot config file:

{
  "mcp_servers": {
    "jachy": {
      "command": ["node", "/absolute/path/to/jachy-mcp-server/dist/index.js"],
      "env": {
        "DISCORD_BOT_TOKEN": "your-token-here"
      }
    }
  }
}

Using `tsx` for development (skip build step)

Replace `node dist/inde

Tools (1)

discord_create_forum_postCreates a new post in a Discord Forum channel

Environment Variables

DISCORD_BOT_TOKENrequiredAuthentication token for the Discord bot

Configuration

claude_desktop_config.json
{"mcpServers": {"jachy-mcp-server": {"command": "node", "args": ["/absolute/path/to/jachy-mcp-server/dist/index.js"], "env": {"DISCORD_BOT_TOKEN": "your-token-here"}}}}

Try it

Create a new forum post in the support channel titled 'New Feature Request' with the content 'I would like to see better integration with external APIs.'
Post a new update to the Discord forum channel with ID 123456789 about the latest project release.
Can you help me automate my Discord community management by creating a forum post for our weekly meeting?

Frequently Asked Questions

What are the key features of Jachy MCP Server?

Unified interface for AI agents to invoke tools. Extensible TypeScript architecture for adding new domains. Built-in Discord forum post creation capabilities. Shared HTTP client with retry, error formatting, and logging. Strict input validation using Zod for type safety.

What can I use Jachy MCP Server for?

Automating community management by posting updates to Discord forums via AI agents. Centralizing tool access for multiple AI agents like Claude Desktop, Cursor, and nanobot. Developing and testing custom automation tools within a standardized TypeScript framework.

How do I install Jachy MCP Server?

Install Jachy MCP Server by running: pnpm install && pnpm build

What MCP clients work with Jachy MCP Server?

Jachy MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Jachy MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare