Repository avatar
Other Tools
v1.4.0
active

primer-msd-mcp

io.github.saihanlinn/primer-msd-mcp

MSD/M4P tools: DCED math, dealer deals, 2,562 evidence guides, and live donor RFPs.

Documentation

Primer MSD & Social Enterprise MCP Server (io.github.saihanlinn/primer-msd-mcp | services.linn/msd)

Zero-authentication remote Model Context Protocol (MCP) server and REST API for Market Systems Development (MSD / M4P), DCED results measurement, private sector deal modeling, and Social Enterprise research.

What You Get

This server indexes 2,562 curated guides, tools, donor programmes, and social enterprise reports (66,738 cataloged assets) from DCED, BEAM Exchange, MSD4E, SEWF, ILO The Lab, ANDE, WEF Schwab Foundation, British Council, and UN ESCAP, plus deterministic math tools and a curated live feed of active, future-closing Market Systems and Social Enterprise RFPs, EOIs, and consultancies.

Available MCP Tools (v1.4.0)

All 7 MCP tools include readOnlyHint: true annotations for friction-free read-only execution.

Tool NamePurpose
search_msd_knowledgeFull-text search across DCED standards, BEAM tools, MSD4E employment guides, global donor programmes, and Social Enterprise publications.
get_msd_evidence_briefRetrieve the structured evidence brief, quantitative facts, practitioner diagnostic, and page-cited fair-use excerpts for any catalog record by (collection, id).
search_opportunitiesSearch active, future-closing MSD, value chain, financial inclusion, and social enterprise tenders with filters (query, category, region, contract_type, donor, eligibility, max_days_left, sort) and structured JSON + Markdown output.
get_opportunityRetrieve complete structured metadata and official portal links for a single active opportunity by numeric ID (msd://opportunities/{id}).
calculate_dealModel rural retail dealer gross margins, 7-to-14-day inventory cash cycles, working capital inflation decay, and farmer payback months.
calculate_dced_attributionCalculate Net Additional Income (NAI) after deadweight, displacement, and substitution, plus crowding-in and 240-day FTE jobs.
lint_proposalAudit draft concept notes or terms of reference for direct giveaway risks, missing private match, 100% attribution claims, and currency peg traps.

Free Interactive Web Calculators

Quick Setup in AI Clients

Cursor / Windsurf / Streamable HTTP Clients

Add to .cursor/mcp.json or your MCP configuration:

{
  "mcpServers": {
    "primer-msd": {
      "url": "https://msd.linn.services/mcp"
    }
  }
}

Claude Desktop (via mcp-remote)

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "primer-msd": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://msd.linn.services/mcp"]
    }
  }
}

Direct JSON-RPC 2.0 Test

curl -s -X POST https://msd.linn.services/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_msd_knowledge","arguments":{"query":"results chain","limit":3}}}'

See examples/rest_examples.sh and examples/python_client.py for more snippets.

Offline-First Local Runtime (offline_msd_mcp)

For low-bandwidth or disconnected field environments, this repository also includes a zero-dependency local stdio MCP server in offline_msd_mcp/ with automatic PII redaction and deterministic MSD math and linting tools.

python3 offline_msd_mcp/test_offline_mcp.py

Repository Scope & Open Knowledge Notice

This public repository contains documentation, client examples, and the Official MCP Registry server.json manifest for the hosted remote endpoint at https://msd.linn.services/mcp.

Primer International does not claim ownership of indexed third-party publications. All original materials belong to DCED, BEAM Exchange, SEWF, ILO, ANDE, WEF Schwab Foundation, British Council, UN ESCAP, and contributing authors. Search responses return short reference excerpts with direct links to original publisher pages.

Takedown requests or bug reports: primer@linn.services (takedowns handled within 48 hours).

No installation packages available.

Remote