agentic-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agentic-mcp-server @agentic-mcp-server search for 'onboarding' in the knowledge base"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agentic-mcp-server
A production-grade Model Context Protocol server template in TypeScript, with the agentic-kit built in: one AGENTS.md every AI coding agent reads, skills that encode how to add tools, resources, and prompts, hooks that block destructive commands and force just check to pass before an agent can say "done", and a multi-model (Claude + Codex + Gemini) code-review council in CI.
It ships a small but complete example, a markdown knowledge base, exposed three ways: tools (kb.search, kb.get, kb.add, sys.time), resources (kb://index, kb://doc/{slug} with listing and completion), and prompts (summarise-doc, answer-with-sources). It runs over stdio for local hosts (Claude Code, Claude Desktop, Cursor) and over Streamable HTTP (stateless, bearer-token protected) for shared deployments. Tool handlers are SDK-free definitions; only src/server.ts and the transports touch @modelcontextprotocol/sdk, so upgrading to the v2 SDK line is a two-file change. Tests drive the server in-process through the official client, over real HTTP, and with the MCP Inspector CLI.
60-second quickstart
git clone https://github.com/kalpesh122/agentic-mcp-server my-mcp && cd my-mcp
just setup && just build
just test-inspector # tools/list + a tools/call through the Inspector CLIRegister it in Claude Code (project scope) with the included .mcp.json, or:
claude mcp add --scope project kb -- node dist/index.jsRequirements: Node 24 (.node-version), just. Docker only for the image.
Related MCP server: bare-mcp
Commands
Command | What it does |
| Install dependencies (pnpm 12 via corepack) |
| Run over stdio / Streamable HTTP with watch |
| Vitest (in-process client, HTTP transport, store, env) |
| Build and drive |
| Open the Inspector UI against the built server |
| Biome check / fix |
|
|
| Compile to |
| Quality gate: lint + typecheck + test + build |
| Image and compose (HTTP mode on 3333) |
| Local multi-model code review of your branch |
Capabilities
Tools
Tool | Description | Annotations |
| Full-text search over the knowledge base; nested | read-only, idempotent |
| Full markdown of one document by slug | read-only, idempotent |
| Create a document; refused unless | write, non-destructive |
| Current time, optional IANA zone | read-only |
Resources
URI | Content |
| JSON list of |
| One document as |
Prompts
Prompt | Arguments | Purpose |
|
| Five-bullet summary of one document |
|
| Answer using only the knowledge base, citing slugs |
Register the server
Claude Code (.mcp.json, committed in this repo):
{ "mcpServers": { "kb": { "type": "stdio", "command": "node", "args": ["dist/index.js"] } } }HTTP mode: { "type": "http", "url": "http://localhost:3333/mcp", "headers": { "Authorization": "Bearer ${MCP_AUTH_TOKEN}" } } or
claude mcp add --transport http --scope project kb http://localhost:3333/mcp --header "Authorization: Bearer $MCP_AUTH_TOKEN".
Cursor (.cursor/mcp.json): same mcpServers shape as above.
Claude Desktop (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json): same mcpServers shape; use an absolute path to dist/index.js and fully quit the app after editing.
Configuration
See .env.example. MCP_TRANSPORT (stdio | http), MCP_HTTP_PORT/MCP_HTTP_HOST, MCP_AUTH_TOKEN (required, 16+ chars, in HTTP mode), KB_DIR (markdown directory), MCP_ALLOW_WRITES, LOG_LEVEL. The --transport CLI flag overrides the env.
Folder map
src/index.ts CLI entry (--transport), env, knowledge base, start
src/env.ts src/log.ts zod env · pino to stderr
src/server.ts createServer(deps): registers tools, resources, prompts (only SDK touchpoint besides transports)
src/tools/ types.ts (defineTool, text, failure) + one file per tool + index.ts
src/resources/ kb://index, kb://doc/{slug}
src/prompts/ summarise-doc, answer-with-sources
src/kb/store.ts KnowledgeBase (load, search, get, add)
src/transports/ stdio.ts · http.ts (express: /health, bearer-protected stateless /mcp)
test/ helpers (in-memory client), server.test.ts, http.test.ts
data/*.md knowledge base documents (frontmatter title/tags)
.claude/ .agents/ AGENTS.md the agentic kitHow AI agents work in this repo
AGENTS.md(≤150 lines) is the map: commands, layout, hard rules, definition of done.CLAUDE.mdimports it; Gemini, Copilot, and Cursor point at it.Skills in
.claude/skills/(mirrored in.agents/skills/):add-tool,add-resource,add-prompt, plus the kit'sbrainstorm-spec,tdd,debug,code-review,council-review,verify-before-done,adr,git-hygiene.Hooks in
.claude/settings.json: blockrm -rf, force pushes, reading.env; protect lockfiles; format every edited file with Biome; runjust checkwhen the agent tries to stop and block if it fails.CI:
ci.ymlrunsjust checkand the Inspector smoke, then builds the image;ai-council-review.ymlhas three models review every PR and post one consolidated comment.specs/001-knowledge-base/shows the spec → plan → tasks flow;docs/adr/records why the stack looks like this.
Swap-outs
Domain: replace
src/kb/and the tools insrc/tools/with your own; keepdefineTooland the tests' shape.Auth: replace
bearerAuthinsrc/transports/http.tswith OAuth 2.1 resource-server checks; keep/healthpublic.SDK v2 (
@modelcontextprotocol/server2.x, spec 2026-07-28): change the imports insrc/server.tsandsrc/transports/*; tool definitions do not change.Hosting: the image runs HTTP on 3333 behind any TLS-terminating proxy.
License
MIT © Kalpesh Mali
Available Tools
4 toolskb.addAdd a documentA
Create a new markdown document in the knowledge base. Fails if writes are disabled on this server or the slug already exists. Ask the user before calling this.
Inputs: body (required), slug (required), title (required), tags.
kb.getRead a documentARead-onlyIdempotent
Return the full markdown body of one knowledge-base document by slug (as returned by kb.search).
Inputs: slug (required).
kb.searchSearch the knowledge baseARead-onlyIdempotent
Full-text search over the markdown knowledge base. Returns the best-matching documents with a slug (use it with kb.get), title, score and a short snippet. Use this first when you need information you do not already have.
Inputs: query (required), limit, filter.
sys.timeCurrent timeARead-only
Return the current date and time in ISO 8601, optionally for an IANA time zone.
Inputs: timeZone.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct operation: search returns matches, get retrieves a full document by slug, add creates a new document, and sys.time provides system time. There is no overlap in purpose or return type.
The knowledge base tools follow a consistent kb.<verb> pattern (search, get, add), and the system tool uses sys.time. Prefix-based namespaces make the convention predictable and easy to reason about.
Four tools is a compact but reasonable set for a focused knowledge base server with a system utility. It is not overly thin, though a couple more operations could strengthen the scope.
The surface covers search, retrieval, and creation of knowledge base documents, but lacks update, delete, and list-all operations. This leaves notable CRUD gaps that agents cannot work around directly.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Persistent memory, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceModel Context Protocol server that standardizes tool discovery, execution, and context management for AI applications.MIT
- AlicenseNot gradedqualityDmaintenanceA minimal, general-purpose implementation of the Model Context Protocol (MCP) for Node.js and Bare runtime, enabling creation of AI-interactive servers with tools, resources, and multiple transport options.11 npm2MIT
- FlicenseNot gradedqualityBmaintenanceModel Context Protocol server for MCPGRAM that enables MCP clients to interact with connectors like GitHub, Slack, and Notion through stdio or Streamable HTTP transports.-
- FlicenseNot gradedqualityAmaintenanceA minimal Model Context Protocol server exposing arithmetic, time, and note-taking tools over streamable HTTP, with in-memory state and Docker support.-