Skip to main content
Glama

sprout-mcp

MCP server that provides a static, queryable reference library for the Sprout.ph API (HR, Payroll, Ecosystem Integration). Internal developers use it to look up endpoints, parameters, and auth requirements without leaving their AI assistant.

How it works

  1. A one-time Playwright scraper (npm run fetch-docs) crawls https://api-docs.sprout.ph/ and writes structured JSON files per API section to src/data/

  2. The MCP server reads those files at startup and registers one tool per section

  3. list_library gives the agent a table of contents; domain tools (e.g. get_hr_employees_ref) return the full endpoint reference for a section

Related MCP server: devdocs-mcp

Setup

1. Install dependencies

npm install

2. Install Playwright browser

npx playwright install chromium

3. Scrape the Sprout API docs

npm run fetch-docs

This populates src/data/ with one JSON file per API section. Re-run whenever Sprout updates their docs.

4. Start the MCP server

npm start

The server listens on port 3000 by default. Set PORT to override:

PORT=4000 npm start

5. Connect your Claude client

Add to your Claude Code settings (.claude/settings.json) or Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "sprout-api": {
      "type": "http",
      "url": "http://localhost:3000/mcp"
    }
  }
}

Available tools

Tool

Description

list_library

Returns a table of contents of all available domain tools

get_{group}_{section}_ref

Returns the full endpoint reference for a section (auto-generated from scraped docs)

Example usage in Claude

You: How do I get a list of employees from Sprout?

Claude: [calls list_library → sees get_hr_employees_ref → calls it]
       GET https://api.sprout.ph/v2/hr/employees
       Auth: Authorization: Bearer {token} | Ocp-Apim-Subscription-Key: {key}
       ...

Development

npm run dev          # run server with hot-reload via tsx
npm test             # run unit tests
npm run test:watch   # watch mode
npm run build        # compile TypeScript to dist/

Refreshing docs

When Sprout updates their API documentation:

npm run fetch-docs
npm start

The scraper overwrites all files in src/data/ and regenerates _index.json. No code changes needed — new sections are picked up automatically.

Project structure

sprout-mcp/
├── scripts/
│   └── fetch-docs.ts       # Playwright scraper (run with npm run fetch-docs)
├── src/
│   ├── server.ts           # MCP server entry point
│   ├── tools/
│   │   ├── types.ts        # Shared types
│   │   ├── list-library.ts # list_library tool
│   │   └── registry.ts     # Dynamic tool registration + endpoint formatter
│   └── data/               # Generated by scraper — not committed to git
│       ├── _index.json
│       ├── hr_employees.json
│       └── ...
└── tests/
    ├── list-library.test.ts
    └── registry.test.ts
F
license - not found
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    An MCP server that provides version-pinned, deterministic documentation sourced from DevDocs.io to AI assistants (Claude, RooCode, Cline, Copilot etc.) and also via offline mode. Not via Scraping! But using the supported downloading option from devdocs.
    Last updated
    78
    12
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    An MCP server that provides comprehensive xAI/Grok API documentation, allowing AI assistants to search bundled guides, fetch live documentation, and browse API endpoints or model specifications.
    Last updated
    13
  • A
    license
    B
    quality
    C
    maintenance
    A read-only MCP server that provides searchable access to the Shelby documentation bundle for MCP-compatible clients. It enables users to search, list, and read documentation pages directly within AI tools and IDEs.
    Last updated
    4
    MIT

View all related MCP servers

Related MCP Connectors

  • Augments MCP Server - A comprehensive framework documentation provider for Claude Code

  • MCP server for accessing curated awesome list documentation

  • MCP server for skill documentation, generated by doc2mcp.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/roniorque/sprout-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server