instant-mcp
Click on "Install 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., "@instant-mcpcreate a new tool that returns the current date and time"
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.
instant-mcp
A local mock MCP server for people building against the Model Context Protocol. Write a tool in the browser, save it, and it is immediately available on an MCP endpoint. There is no restart or deploy step.
Point your MCP client at http://127.0.0.1:4100/mcp/default and start working.

import { defineTool } from "instant-mcp";
export default defineTool({
description: "Look up a user by name",
inputSchema: {
type: "object",
properties: { name: { type: "string" } },
required: ["name"],
},
handler(args: { name: string }, ctx) {
return ctx.db.query("SELECT * FROM users WHERE username = ?", [args.name]);
},
});Features
Hot reload. Save a tool and the endpoint serves the new version on the next request. Editing in the web UI and editing the file directly both work.
Multiple endpoints. Group tools and serve each group at
/mcp/<slug>, so different clients can see different tool sets.A mock database. Create SQLite tables in the UI and read or write them from tool code through
ctx.db.A call log. Every MCP call is recorded with its arguments, result, errors and duration, so you can see the arguments a client actually sent.
A control endpoint. Optionally expose instant-mcp itself over MCP so a coding agent can author tools, wire endpoints and read the call log.
Everything runs locally with no authentication. The server binds to 127.0.0.1
only.
Related MCP server: MCP Personal Tools Server
Quick start
Requires Node 20 or newer.
git clone https://github.com/jhleee/instant-mcp.git
cd instant-mcp
npm install
npm run build # build the web UI once
npm start # http://127.0.0.1:4100The first run copies two example tools into data/tools/.
Register it with an MCP client:
{
"mcpServers": {
"instant-mcp": {
"type": "http",
"url": "http://127.0.0.1:4100/mcp/default"
}
}
}For UI development, npm run dev runs the server and Vite together. The UI is on
http://127.0.0.1:5173 and proxies API and MCP traffic to port 4100.
Writing tools
A tool is a directory under data/tools/ with an index.ts that default-exports
one module. The authoring API comes from the instant-mcp module, so there is no
need for relative paths into the server.
defineTool returns its argument unchanged. It exists for typing: use it and
ctx is inferred without an annotation. A plain export default { ... } also
works.
A handler that returns a string sends it as-is. Any other value is JSON-stringified. Return
{ content: [...] }to build the MCP payload yourself.inputSchemais used for validation, not just documentation. A call missing a required field is rejected before the handler runs.Saving recompiles and reloads the tool, whether you save from the web UI or edit the file directly.
What ctx can do
The full API is in sdk/index.d.ts. The server implementation
is type-checked against that file and the web editor loads the same file, so the
documentation stays in step with the behaviour.
There are three ways to read it:
Editor autocomplete. Type
ctx.inside a handler to get the methods with their docs and examples.The Context API button in the sidebar footer, which renders the declaration file.
npm run typecheck, which coversdata/tools/**along with the server.
ctx.db is the only route to the mock tables:
Method | Purpose |
| Names of all mock tables |
| Every row, up to |
| Read-only SELECT with |
| Insert a row, returns the new |
| Update only the columns given |
| Delete a row |
Groups and endpoints
Tools belong to groups, and each group is served at its own endpoint. New tools
join the default group automatically. Endpoints use stateless Streamable HTTP
and are rebuilt per request, so hot reloads and enable/disable changes take
effect right away.

Mock tables
Create tables and edit rows under Mock Tables in the sidebar. Every table gets an
auto-increment id. Names beginning with _ and the sqlite_ prefix are
rejected to protect the metadata tables, and identifiers are validated before
they reach SQL.
Call log
Every tool call arriving over MCP is recorded: time, group, tool, arguments,
result, error flag and duration. Read it under Call Log in the sidebar, or with
get_call_log on the control endpoint.
This matters when you are testing someone else's client, because it shows the arguments that were sent rather than the ones that were intended. Calls rejected by argument validation are logged too. The log keeps the most recent 2000 entries and truncates large payloads.

Control endpoint (/mcp/_control)
An optional endpoint that exposes instant-mcp itself over MCP, so a coding agent can build and debug a mock server.
npm run start:control # or INSTANT_MCP_CONTROL=1 npm start{
"mcpServers": {
"instant-mcp-control": {
"type": "http",
"url": "http://127.0.0.1:4100/mcp/_control"
}
}
}Tools
Tool | Purpose |
| One call returns tools, groups, endpoint URLs and tables |
| A tool's source |
| Create or update. Returns |
| Remove a tool |
| Execute directly, bypassing MCP, to check a tool before handing over an endpoint |
| Manage endpoints. |
| Mock schema |
| Bulk insert ( |
| Read-only SELECT |
| What clients actually sent |
There is no per-row CRUD. Inserting twenty rows should be one seed_table call
rather than twenty round trips.
Resources
instant-mcp://sdkis the tool authoring API. Read it before writing tool code and there is nothing to guess aboutctx.instant-mcp://tools/{name}is a tool's source.instant-mcp://groups/{slug}is thetools/listpayload that endpoint serves, which is what a client will see rather than internal state.
Isolation
The control surface is a fixed endpoint outside the normal group namespace, so an agent cannot disable the tools it is calling through:
Slugs starting with
_are reserved, so no group can shadow_control.Control tools are built into the server rather than stored under
data/tools/, sowrite_toolanddelete_toolcannot reach them and they cannot be disabled._controlnever appears in the group list, so it cannot be edited or deleted.
npm run smoke:guards checks all four.
Security
This endpoint is effectively an arbitrary code execution API. write_tool writes
files under data/tools/ and that code runs unsandboxed inside the server
process, which is why it is off until you turn it on. The web UI has the same
power, but exposing it over MCP means any client that knows the URL has it too.
Enable it for local mock work only.
Project layout
sdk/index.d.ts the tool authoring API
sdk/index.js defineTool runtime
server/
index.ts entry point: REST API, MCP and the static UI on one port
db.ts SQLite schema and mock table CRUD
toolLoader.ts esbuild transpile, dynamic import, chokidar hot reload
workspace.ts tool/group/table operations shared by REST and control MCP
mcp.ts per-group MCP server (tools/list, tools/call)
control.ts control MCP: 12 tools and 3 resources
callLog.ts MCP call recording
toolContext.ts the ctx injected into tool handlers
routes/ apiRoute.ts (REST), mcpRoute.ts (/mcp/:slug)
web/ Vite, React, shadcn/ui, Monaco
examples/tools/ example tools, copied into data/tools on first run
data/ your workspace: tool code, SQLite db, build output (untracked)Scripts
Command | Purpose |
| Server and Vite together |
| Server only, serving the built UI |
| Also enable the control endpoint |
| Build the web UI |
| Type-check everything, including your tools |
| Connect an MCP client to |
| Author a tool, wire an endpoint, call it, read the log |
| Control endpoint isolation checks |
Limitations
Tool code runs unsandboxed in the server process, so only load code you trust.
Sandboxing with vm is planned but not implemented.
The transport is stateless, so there is no notifications/tools/list_changed
push and clients have to re-list to see new tools. Each request rebuilds the
server, so re-listing always returns current state.
Contributing
Issues and pull requests are welcome. Please run npm run typecheck and
npm run build before opening a PR.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceA server implementation of the Model Context Protocol (MCP) that provides REST API endpoints for managing and interacting with MCP resources.Last updated
- AlicenseBqualityDmaintenanceA simple server implementing the Model Context Protocol (MCP) that exposes personal tools like note-taking for compatible MCP clients or agents.Last updated21,967MIT
- Flicense-qualityDmaintenanceA minimal Model Context Protocol server built with FastAPI that provides a basic "Hello World" resource and tool. Serves as a starting point for building and validating MCP client integrations with richer resources and tools.Last updated
- AlicenseBqualityDmaintenanceA mock MCP server for testing MCP client implementations and development workflows. Supports tools, prompts, and resources across multiple transport protocols (stdio, HTTP, SSE).Last updated21MIT
Related MCP Connectors
MCP (Model Context Protocol) server for Appwrite
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
MCP Spec Compliance MCP — audits any MCP server.json against the official Model Context Protocol
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/jhleee/instant-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server