Skip to main content

Build a PUBLICMCP-compliant business identity MCP server in minutes

Project description

publicmcp

Build a PUBLICMCP-compliant business identity MCP server in minutes.

PyPI License Spec

PUBLICMCP is an open standard for public-facing business identity MCP servers — structured, AI-readable business data that any AI agent or MCP client can query. This package is the reference implementation.

Full spec and registry: github.com/joeprovence/publicmcp


Quickstart

pip install publicmcp
publicmcp init          # create business.json
publicmcp serve         # start server on :8000

Point your MCP client at http://localhost:8000/mcp. That's it.


What it does

publicmcp serve starts a FastMCP server that exposes your business.json as structured MCP tools. AI agents (Claude, Gemini, GPT, Continue, etc.) can call these tools to learn about your business, qualify a prospect, or pull your service and portfolio data — without hallucinating.

Browsers hitting the root URL are redirected to your publicmcp_page landing page. AI agents get MCP.


CLI reference

publicmcp init [--output business.json] [--force]
    Create a starter business.json template.

publicmcp serve [--business business.json] [--host 0.0.0.0] [--port 8000] [--domain your.domain.com]
    Start the server. --domain sets the URL in the discovery endpoint.

Endpoints

Path Method Description
/mcp POST MCP (streamable-http) — for AI agents
/.well-known/publicmcp.json GET Discovery endpoint
/info GET Plain-text server summary
/ GET Discovery payload (JSON)

Tools (PUBLICMCP v0.2)

All tools are read-only. Data comes from your business.json — no external calls.

Tool Required Description
get_info Name, tagline, description, contact, founders, hours, social profiles
get_services Services with pricing, highlights, and timeline
get_location Offices, service areas, headquarters, geo
get_portfolio Portfolio items, filterable by market and category
get_sales_context Objection handling, pain points, ideal client profile (requires sales_agent in business.json)
qualify_prospect Fit score, vertical detection, service recommendation (requires primary_markets in business.json)

Plus one prompt: sales_workflow — tool chaining guide for consultative sales AI agents.


business.json

publicmcp init creates a starter template. The minimum required fields for spec compliance:

{
  "name": "Your Business",
  "services": [...],
  "locations": [...]
}

A full v0.2 schema is in the spec.


Discovery

Every server exposes a /.well-known/publicmcp.json endpoint so AI agents can auto-discover capabilities:

{
  "publicmcp_version": "0.2",
  "auth": "none",
  "endpoint": "https://mcp.yourdomain.com/mcp",
  "tools": [...]
}

Production deployment

For production, run behind a reverse proxy (Caddy or nginx) with SSL:

# Caddyfile
mcp.yourdomain.com {
    reverse_proxy 127.0.0.1:8000
}

Then run with your public domain:

publicmcp serve --business business.json --host 127.0.0.1 --port 8000 --domain mcp.yourdomain.com

Registry

Live deployments are listed in the PUBLICMCP registry. 15 servers active across the US and Canada as of April 2026.

To register your server, open a PR to registry/servers.yaml.


Links


License

Apache 2.0 — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

publicmcp-0.2.3.tar.gz (6.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

publicmcp-0.2.3-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file publicmcp-0.2.3.tar.gz.

File metadata

  • Download URL: publicmcp-0.2.3.tar.gz
  • Upload date:
  • Size: 6.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for publicmcp-0.2.3.tar.gz
Algorithm Hash digest
SHA256 641ff8ca0284c721b8e34440e0e108cbb28c4c606d15ef3a7e69e4b96a9cc27e
MD5 e3d03cf6d4064a44d4a1b2c6109c7dab
BLAKE2b-256 5a03b20fd2782908b238ad2f04e4710c737569bc2662eec21128cb3ff76723b6

See more details on using hashes here.

File details

Details for the file publicmcp-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: publicmcp-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for publicmcp-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fe53fde83d9abaf10a72bda41fa9a978eadba8a38ac0b6ff51c363922ec25753
MD5 57f750b8ace1dc3c57f40b7e108530e6
BLAKE2b-256 632b239b0c6ed05fbd0debad998967de4bdf949f63cedd2acf41c8f5e21c3fac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page