MCP Server Setup for Business Initiative

MCP Server Setup for Business Initiative

This document explains how to set up the MCP (Model Context Protocol) server for Business Initiative documentation.

Overview

The MCP server allows AI assistants in Cursor, Windsurf, and Claude Desktop to access Business Initiative’s documentation through the llms.txt file.

Prerequisites

  • uv package manager installed
  • mcpdoc package (installed via uvx)

MCP Server Configuration

The MCP server is configured to use the Business Initiative llms.txt file located at:

  • URL: https://www.businessinitiative.org/llms.txt

IDE Integration

Cursor IDE

  1. Open Cursor Settings → MCP tab
  2. This opens ~/.cursor/mcp.json
  3. Add the following configuration:
{
  "mcpServers": {
    "business-initiative-docs": {
      "command": "uvx",
      "args": [
        "--from",
        "mcpdoc",
        "mcpdoc",
        "--urls",
        "Business Initiative:https://www.businessinitiative.org/llms.txt",
        "--transport",
        "stdio"
      ]
    }
  }
}
  1. Update Cursor Global (User) Rules with:
for ANY question about Business Initiative, business formation, LLC, Corporation, or registered agent services, use the business-initiative-docs server to help answer -- 
+ call list_doc_sources tool to get the available llms.txt file
+ call fetch_docs tool to read it
+ reflect on the urls in llms.txt 
+ reflect on the input question 
+ call fetch_docs on any urls relevant to the question
+ use this to answer the question

Windsurf IDE

  1. Open Cascade with CMD+L (on Mac)
  2. Click Configure MCP to open ~/.codeium/windsurf/mcp_config.json
  3. Add the following configuration:
{
  "mcpServers": {
    "business-initiative-docs": {
      "command": "uvx",
      "args": [
        "--from",
        "mcpdoc",
        "mcpdoc",
        "--urls",
        "Business Initiative:https://www.businessinitiative.org/llms.txt",
        "--transport",
        "stdio"
      ]
    }
  }
}
  1. Update Windsurf Rules/Global rules with:
for ANY question about Business Initiative, business formation, LLC, Corporation, or registered agent services, use the business-initiative-docs server to help answer -- 
+ call list_doc_sources tool to get the available llms.txt file
+ call fetch_docs tool to read it
+ reflect on the urls in llms.txt 
+ reflect on the input question 
+ call fetch_docs on any urls relevant to the question

Claude Desktop

  1. Open Settings → Developer
  2. Edit ~/Library/Application Support/Claude/claude_desktop_config.json
  3. Add the following configuration:
{
  "mcpServers": {
    "business-initiative-docs": {
      "command": "uvx",
      "args": [
        "--from",
        "mcpdoc",
        "mcpdoc",
        "--urls",
        "Business Initiative:https://www.businessinitiative.org/llms.txt",
        "--transport",
        "stdio"
      ]
    }
  }
}
  1. Restart Claude Desktop app
  2. Note: Claude Desktop doesn’t support global rules, so append to your prompts:
<rules>
for ANY question about Business Initiative, business formation, LLC, Corporation, or registered agent services, use the business-initiative-docs server to help answer -- 
+ call list_doc_sources tool to get the available llms.txt file
+ call fetch_docs tool to read it
+ reflect on the urls in llms.txt 
+ reflect on the input question 
+ call fetch_docs on any urls relevant to the question
</rules>

Claude Code

In a terminal, run:

claude mcp add-json business-initiative-docs '{"type":"stdio","command":"uvx" ,"args":["--from", "mcpdoc", "mcpdoc", "--urls", "Business Initiative:https://www.businessinitiative.org/llms.txt"]}' -s local

This updates ~/.claude.json.

Note: Claude Code doesn’t support global rules, so append the rules to your prompts as shown above.

Testing the MCP Server Locally

To test the server locally with SSE transport:

source $HOME/.local/bin/env
uvx --from mcpdoc mcpdoc \
    --urls "Business Initiative:https://www.businessinitiative.org/llms.txt" \
    --transport sse \
    --port 8082 \
    --host localhost

Then use MCP Inspector:

npx @modelcontextprotocol/inspector

Connect to http://localhost:8082 and test the list_doc_sources and fetch_docs tools.

Security Notes

  • The MCP server automatically allows fetching from businessinitiative.org domain
  • To allow additional domains, use --allowed-domains domain1.com domain2.com
  • Use --allowed-domains '*' to allow all domains (use with caution)

Troubleshooting

  • Ensure uv is in your PATH: source $HOME/.local/bin/env
  • Verify llms.txt is accessible: curl https://www.businessinitiative.org/llms.txt
  • Check MCP server logs for errors
  • Restart the IDE after configuration changes