Example walkthroughs

Step-by-step guides for the shipped examples and their ready-to-deploy starter counterparts.

Static filesystem example

Use this when you already have local content files and want a zero-CMS setup.

1
Start from included content

Use examples/static/content as the baseline layout.

2
Run the standalone server

tsx module/src/server/standalone.ts examples/static/content 3100

3
Connect your MCP client

Point client URL to http://localhost:3100/mcp.

Want the Netlify version immediately? Use starters/netlify-static-starter for the same content shape plus a prewired /mcp deploy button.

{
  "static-example": {
    "type": "http",
    "url": "https://static-mcpify.alexlockhart.me/example/static/mcp"
  }
}

Contentful integration example

Use this to build content from Contentful during local builds or Netlify deploys.

1
Configure env vars

Set CONTENTFUL_API_TOKEN and SPACE_ID.

2
Build content

Run npm run build:contentful to generate output in examples/contentful/content.

3
Serve endpoint

Use Netlify function route /example/contentful/mcp.

Use starters/netlify-contentful-starter to deploy bundled sample content first, then add Contentful credentials later for automated rebuilds.

{
  "contentful-example": {
    "type": "http",
    "url": "https://static-mcpify.alexlockhart.me/example/contentful/mcp"
  }
}