
Mainstreet Mcp
io.github.gbrussich52Published by GitHub account gbrussich52v0.1.5Updated Oct 29, 2026
Free small-business facts and stateless workflow review kits: quotes, invoices and order handoffs.
Overview
Local MCP server that gives an assistant a small business's configured facts — hours, offerings, staff, FAQs, booking — plus stateless quote, invoice and…
- What you can do
- Read business profile, contact details, policies and staff roles
- Check open/closed status in the business's timezone, including overnight hours and holiday exceptions
- Search offerings and answer FAQs from the configured file, returning not-found instead of guessing
- Return booking options and industry-specific tools such as menus, price estimates, service areas, class schedules, listings or accepted insurance
- Accept customer inquiries with sanitization, rate limiting and industry guardrails
- Run stateless workflow kits that analyze supplied quote, invoice or order facts and prepare an unsent review draft
- When to use it
- Useful for a small business owner who wants an AI assistant to answer customer questions from one maintained business.yaml file, or for reviewing quote follow-ups, invoice discrepancies and order handoffs against sample policies. Not a hosted connector or a live link to CRM, accounting or order systems.
- Requirements
- Runs locally over stdio; Node.js 20+ for the npm package, or the desktop bundle for a one-click install. A business.yaml config file, created with the init command or written during setup. No accounts, API keys or environment variables are declared. Optional HTTP mode binds only to 127.0.0.1.
Installation
In SourceWeft
- Open Mainstreet Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Main Street MCP
A free, industry-specific MCP server that gives a small business's AI assistants
(such as Claude Desktop and Claude Code) configured facts about hours, menu/services,
FAQs, staff and booking. One business.yaml file per business; no code changes required
to run it. Answers depend on the accuracy of that file and the assistant using it.
The published package supports compatible local MCP clients over stdio. It is not a hosted ChatGPT app or connector. The optional HTTP mode listens on loopback and validates localhost Host/Origin headers; remote hosting, authentication and client compatibility must be configured and verified separately. A reverse proxy alone does not establish those requirements.
Quickstart (business owner)
-
Install Node.js 20+ (or use the version already on your machine — check with
node -v). -
Generate a starter config for your industry:
Replace
restaurantwith your industry. Supported industries:restaurant,dental,law-firm,home-services,salon-spa,fitness-studio,real-estate-agent,auto-repair,insurance-agency,church.This writes
business.yamlin the current directory — edit it with your business's real name, hours, menu/services, FAQs, etc. (Use--out <path>for a different name; every other command then needs--config <path>.) -
Check your edits are valid:
A broken file (bad YAML, a typo'd industry, a field that doesn't fit) prints a specific, readable error instead of a stack trace.
-
Point your AI assistant at it. For a local MCP client (e.g. Claude Desktop) that spawns stdio servers, add an entry like:
To test the business server over local HTTP instead, run:
The HTTP server only binds to
127.0.0.1and validates theHost/Originheaders on every request. No public endpoint, remote authentication or hosted deployment is included. A remote deployment needs a separate review of those controls and the intended client's transport requirements.
What it gives an AI assistant
Every business gets 7 universal tools regardless of industry:
get_business_profile— name, description, contact info, address, policiescheck_open_status— open/closed right now (or at a given time), in the business's own timezone, including overnight hours and holiday/exception overridessearch_offerings— free-text search over whatever the business sells/offersanswer_question— looks up configured FAQs; returnsfound: falserather than a guess when nothing matches confidentlylist_staff— configured staff, roles, bios, credentialsget_booking_options— how to actually book (phone/online/walk-in/email)submit_inquiry— lets a customer leave a message; rate-limited, sanitized, and screened by industry-specific guardrails before it's accepted
On top of that, each industry preset turns on a handful of capabilities — pluggable tool modules — matched to that industry:
Every tool ships an outputSchema and returns structuredContent, so a calling agent gets
typed data back, not just prose to parse.
Guardrails
Some presets screen submit_inquiry messages before accepting them, on top of the universal
sanitization (HTML/control-char stripping, length caps, rate limiting):
- dental — rejects messages containing an SSN-shaped pattern, and long messages with clinical/health detail keywords (tells the patient to call the office instead).
- law-firm — caps the message to one line / 280 characters (a topic, not case details).
- salon-spa / fitness-studio — rejects messages containing health/medical detail keywords (pregnancy, injury, medication, etc.), directing the customer to tell staff in person instead.
price_estimate outputs always carry is_estimate: true plus a disclaimer — never present
as a firm quote.
Install
Claude Desktop (one-click, no terminal)
Download the latest mainstreet-mcp.mcpb from the releases page
(or build it yourself — see mcpb/ below), then double-click it. Claude Desktop opens it as
a Desktop Extension install prompt; it asks for one thing — a folder to keep your
business.yaml in. Pick any folder you can find again; Documents is fine. No Node.js
install or terminal needed.
You do not need a business.yaml before you install. If the folder is empty, the server
starts in setup mode: ask Claude to "set up my business", and it lists the industries, writes
the starter file into that folder, and interviews you to fill in your real hours, services
and prices. Turn the extension off and on again when you're done and your business tools
appear. The folder you picked stays the same throughout.
To build the .mcpb yourself:
Claude Code (plugin)
Install the bundled plugin, which registers the MCP server and adds a setup-my-business
skill that interviews you and writes business.yaml for you:
The plugin's MCP config expects business.yaml at your project root
(${CLAUDE_PROJECT_DIR}/business.yaml), which is exactly what init writes — run the
setup-my-business skill, or npx -y mainstreet-mcp init --industry <yours>,
from that directory.
Claude Code (direct MCP add, no plugin)
Generic JSON config (any MCP client)
For any client that spawns stdio servers from a JSON config (Claude Desktop's manual config, other MCP clients):
Example configs
examples/ has one working <industry>.business.yaml per supported industry — the same
files init copies from and the E2E test suite runs against.
Development
Stack: @modelcontextprotocol/[email protected] (MCP spec 2026-07-28), TypeScript strict/ESM,
Zod for all schemas and config validation, yaml for parsing business.yaml. All
dependencies are pinned to exact versions (no ^).
Project layout
src/config/schema.ts— thebusiness.yamlZod schema (BusinessConfigSchema) and types.src/config/load.ts— loads + validates a config file, including per-capability config and the industry/capability compatibility check.src/hours.ts— timezone-aware open/closed logic (Intl-based), overnight ranges, date exceptions, forward-scanning for the next open/close time.src/search.ts— the recall-first free-text search used bysearch_offeringsandanswer_question.src/inquiries.ts—InquirySink: sanitization, rate limiting, guardrail hook, and file/webhook delivery forsubmit_inquiry.src/capabilities/*— the 9 pluggable capability modules (config schema + tool registration each).src/presets/*— the 10 industry presets: which capabilities are on, the instructions text injected into the server, and anyguardHooks.src/tools/universal.ts— the 7 universal tools every business gets.src/server.ts—createServer(config): builds theMcpServerfor a loaded config.src/cli.ts—mainstreet-mcpentry point (stdio default,init,validate,serve --http).src/test/*.test.js(compiled from.ts) — unit tests (schema, search, hours, inquiries/ guardrails) plus an E2E suite that spawns the built stdio server for every example config and drives it with the real MCP client SDK.
Testing notes
npm testruns both unit tests and the E2E suite (src/test/e2e.test.ts), which spawnsdist/cli.jsas a child process viaStdioClientTransportfor every file inexamples/, callstools/list, then calls every registered tool and asserts it returnsstructuredContentwithoutisError.serve --httpbinds a local port, which some sandboxed shells block by default; test it outside such a sandbox ifEPERM/listenerrors appear.
The submit_inquiry tool advertises openWorldHint: true when configured for webhook
delivery and false for local file delivery. It remains a non-idempotent write tool
in both modes.
Status
Presets, capabilities, universal tools, CLI, and all 10 example configs are built and
verified (build, unit tests, E2E stdio tests, CLI validate success/failure paths, and an
HTTP smoke test all pass — see the build's final report for exact output). Version
0.1.4 is published on npm, in the
GitHub release
and in the official MCP registry as io.github.gbrussich52/mainstreet-mcp.
These are package distribution channels; they do not provide a hosted endpoint or
prove a particular customer's integration. The desktop bundle opens business setup;
workflow kits use the CLI configuration below.
Workflow kits: caller-supplied facts to a review packet
Version 0.1.4 adds three stateless kits. Each exposes exactly two tools: analyze_workflow and prepare_workflow_draft. They evaluate supplied structured facts with explicit sample policies and prepare an unsent review draft when inputs are adequate. No provider account, live source verification, storage, messages, money movement or fulfillment changes are included. Your MCP host may send tool inputs to its model provider; use fictional inputs first and follow your organization's data rules.
Use one kit per configured MCP server. Try the fictional demos and request a scoped implementation. These free kits do not include connected customer systems. Check native CRM, accounting or order software before commissioning a custom integration.
Ask: “Review this quote using the supplied timestamps and follow-up policy. Prepare a draft only if the tool says it is ready.” Send all required fields from the published tool schema, using null for unknown facts. needs_review means verify sources; no_action means no draft is warranted under the supplied facts/policy. Example inputs and expected states are bundled in dist/workflows/core.js. These initial kits support USD, EUR, GBP, CAD and AUD at 100 cents per major unit; other currencies require separate reviewed rules. Amounts use integer cents, currencies must match, and dates use UTC ISO seconds or three millisecond digits. The seven-day freshness window and paid-before-production rule are sample policies to review for your business. asOf is supplied by the caller, not a live clock or verification timestamp.
These CLI kits use stdio with a compatible MCP host. The desktop bundle retains the original business setup flow; it does not automatically enable workflow kits. Changing the command selects a kit. See the demo's install instructions for exact host configuration.
Source: README.md at commit 3a1e763
Tools
0Version history
5- v0.1.5LatestOct 29, 2026
- v0.1.4Oct 12, 2026
- v0.1.2Sep 23, 2026
- v0.1.1Sep 18, 2026
- v0.1.0Sep 17, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts