
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.
- Official MCP Endpoint:
https://msd.linn.services/mcp(Streamable HTTP, JSON-RPC 2.0) - Registry Namespaces:
io.github.saihanlinn/primer-msd-mcp(GitHub OIDC) andservices.linn/msd(Domain Verified) - Interactive API Docs: https://msd.linn.services/docs
- Live Opportunity Radar: https://primer.linn.services/market-systems/opportunities/?utm_source=github_mcp&utm_medium=readme (Edge HTML Mirror | JSON API | Markdown Feed | RSS Feed | JSON Feed)
- Catalog & Unified RSS Feeds: Catalog RSS | All-in-One RSS
- Browsable HTML Catalog (2,562 entries): https://msd.linn.services/catalog
- Free Browser Calculators: https://primer.linn.services/market-systems/?utm_source=github_mcp&utm_medium=readme
- Book a 30-Minute B2B Discovery Call: https://primer.linn.services/book/?utm_source=github_mcp&utm_medium=readme
- AI Agent Summary (
llms.txt): https://msd.linn.services/llms.txt
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 Name | Purpose |
|---|---|
search_msd_knowledge | Full-text search across DCED standards, BEAM tools, MSD4E employment guides, global donor programmes, and Social Enterprise publications. |
get_msd_evidence_brief | Retrieve the structured evidence brief, quantitative facts, practitioner diagnostic, and page-cited fair-use excerpts for any catalog record by (collection, id). |
search_opportunities | Search 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_opportunity | Retrieve complete structured metadata and official portal links for a single active opportunity by numeric ID (msd://opportunities/{id}). |
calculate_deal | Model rural retail dealer gross margins, 7-to-14-day inventory cash cycles, working capital inflation decay, and farmer payback months. |
calculate_dced_attribution | Calculate Net Additional Income (NAI) after deadweight, displacement, and substitution, plus crowding-in and 240-day FTE jobs. |
lint_proposal | Audit 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
- DCED Sample Size Calculator
- AAER Framework & Will-Skill Checker
- Rural Dealer Payback Calculator
- DCED Attribution & FTE Jobs Calculator
- MSD Concept Note Linter
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.