Site-Forge-MCP
An MCP server that accepts payments via Stripe and publishes websites on Netlify only after payment is confirmed, enforcing a strict paywall.
README
siteforge-mcp
An MCP server that takes payment for a website and publishes it — but only after Stripe confirms the money arrived.
Standalone. No shared code, imports, or infrastructure with any other project.
Tools
| Tool | In | Out |
|---|---|---|
service_status |
— | which halves are configured (no secrets echoed) |
create_checkout_session |
product_name, amount_usd, success_url, cancel_url, recurring |
{checkout_url, session_id} |
check_session_status |
session_id |
{payment_status, paid, customer_email, published_url} |
publish_site |
session_id, html, business_name |
{url, claim_url, site_id, deploy_id, deploy_state} |
check_deploy |
deploy_id |
{state, live, url} |
The one rule this server exists to enforce
publish_site is the paywall. The caller is a browser artifact — it can be
edited by anyone with devtools, so it is never believed. The only thing it can
send is a session_id, and the server asks Stripe directly whether that session
is paid. There is no parameter that lets a caller assert payment.
Second-order protections:
- A paid session maps to exactly one Netlify site, recorded in that session's Stripe metadata. Republishing with the same session updates the same site, so one payment cannot mint unlimited sites. Metadata also means no database.
- No card number ever touches this server. Customers pay on Stripe's hosted page, which keeps the whole thing out of PCI scope.
- Secrets live only in this process's environment.
Site ownership
Sites are created under your umbrella Netlify team, then handed over. Each
response includes a claim_url — a signed link that transfers the site into the
customer's own Netlify account. You keep deploy access afterward, so paid edits
still work, but their hosting is on their account. Set the OAuth vars below to
enable it; without them claim_url is null and sites stay yours.
Setup
- Stripe key — dashboard.stripe.com/apikeys. Start with
sk_test_. - Netlify token — app.netlify.com/user/applications → personal access tokens.
- Team slug — Netlify team settings → general. Use a team dedicated to customer sites, not your personal one.
- OAuth app (for claiming) — app.netlify.com/user/applications → OAuth applications → Create new. No redirect URI needed for deploy-and-claim. Copy the client ID and secret.
Copy .env.example to .env for local runs. On Render, set the same keys under
Environment. render.yaml is included — deploy from repo, free plan is fine.
pip install -r requirements.txt
python server.py # serves on http://localhost:8000/mcp
Tests
pip install -r requirements-dev.txt
pytest -q # 66 tests, no network or credentials needed
Stripe and Netlify are both stubbed. Stripe responses are built with
construct_from, so tests see the same object types a live call returns —
that is what catches the version issue described below.
Verified
- Server boots;
initialize,tools/listandtools/callanswer correctly over streamable HTTP. publish_siterefuses every non-paidpayment status and never touches Netlify for one. It takes no argument through which a caller could assert payment — the artifact can only hand over asession_id.- One paid session maps to one site: republishing redeploys the recorded
site_idinstead of creating a second site. - Once a deploy succeeds the URL always comes back. No Stripe failure on the
bookkeeping write afterward can turn a live, paid-for site into a failed call;
it degrades to a
warningfield. - Every Stripe and Netlify failure returns
{ok, error, how_to_fix}rather than a raw exception, and Stripe's partially-masked API key is never echoed back. - Misconfiguration names the missing variable.
- HTML fragments and oversized documents are rejected before Stripe is called.
- Claim link JWT signs and verifies with the expected
client_id/session_id, and a broken OAuth secret yieldsclaim_url: nullinstead of failing a publish.
Not yet verified
- A real payment moving
unpaid→paid, and a real Netlify deploy. Both need live credentials. That is the first thing to run once this is on Render. - Subscription (
recurring=true) checkout has not been exercised end to end; the session is constructed correctly but no real subscription has been billed.
A note on the Stripe version
stripe-python 12 stopped making StripeObject a dict subclass. On 12+,
session.metadata is not a mapping: .get() raises AttributeError, {**...}
raises TypeError, and an empty one is truthy so or {} never falls back. Since
this server keeps its payment→site mapping in Stripe metadata, every read goes
through _stripe_dict(), which normalizes all of those shapes — plus absent and
null fields — to a plain dict. It works on 11 and 12+ alike. Don't reach for
session.metadata directly when adding code.
v1 scope
No refunds, no webhooks, no custom domains, no multi-page sites. Add them when a customer asks, not before.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。