What midwest-legal-docs MCP server does
The midwest-legal-docs MCP server gives AI agents access to the Midwest Legal Docs agent API. It covers four parts of a document-purchase workflow: listing available products, narrowing the catalog, starting payment, and checking an existing order or checkout session.
The catalog tool returns form products with an identifier, title, and price. Search can use a keyword, state, or category, which lets an agent narrow the available forms before presenting options to a user. Checkout creation uses Stripe, and the order lookup tool retrieves the status of an order or checkout session.
This service is for document preparation. The source material explicitly states that Midwest Legal Docs is not a law firm and does not provide legal advice, so an agent should not represent the service as legal counsel.
How it works
The application runs as a Node-based MCP server and wraps the Midwest Legal Docs agent API. MCP clients communicate with the server through the documented HTTP endpoint, POST /mcp. A separate GET /health endpoint is available for health checks.
A typical interaction starts with get_catalog or search_catalog. After the agent identifies a suitable form product, create_checkout_session can create a Stripe checkout. get_order can then look up the order or checkout-session status. Creating a checkout requires the agent API key; the README does not specify additional tool parameters or the response schema.
Setup and configuration
To run the midwest-legal-docs MCP server locally, install its Node dependencies, build the project, and start the application with an agent API key. The documented commands are:
npm install
npm run build
MLD_AGENT_API_KEY=your-key PORT=3000 npm start
MLD_AGENT_API_KEY authenticates requests to the underlying agent API. PORT sets the local listening port in the example. For deployment, the project is intended for Render, Railway, or another Node host. The deployment instructions also call for an ALLOWED_HOSTS environment variable.
Tools and capabilities
get_catalog: Lists form products with IDs, titles, and prices.
search_catalog: Searches products by keyword, state, or category.
create_checkout_session: Creates a Stripe checkout session and requires an API key.
get_order: Looks up an order or checkout-session status.
These tools support catalog-to-checkout workflows, but the provided material does not describe document editing, legal analysis, payment confirmation behavior, or automated legal-form completion.
Limitations and notes
The midwest-legal-docs MCP server depends on the Midwest Legal Docs agent API and requires an API key for checkout creation. Its documented scope ends at catalog access, checkout-session creation, and order-status lookup. The service is not a law firm and does not provide legal advice, so applications should present it as a document-preparation service rather than a source of legal counsel.