Skip to main content
Glama

Fergus MCP Server

by Jayco-Design
README.md•3.68 kB
# Fergus MCP Server A [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that integrates with the Fergus API, enabling AI assistants like Claude to interact with Fergus's job management platform. ## Features - šŸ” Secure authentication using Personal Access Tokens - šŸ“‹ Access to jobs, customers, quotes, sites, and more - šŸ› ļø Tools for creating and managing Fergus resources - šŸ”„ Real-time data synchronization with Fergus API ## Installation ### Using with Claude Desktop The easiest way to use this MCP server with Claude Desktop is via npx: ```bash claude mcp add fergus-mcp -- npx -y fergus-mcp --api-token YOUR_API_TOKEN ``` Or add it manually to your Claude Desktop config: **MacOS**: `~/Library/Application Support/Claude/claude_desktop_config.json` **Windows**: `%APPDATA%/Claude/claude_desktop_config.json` ```json { "mcpServers": { "fergus": { "command": "npx", "args": ["-y", "fergus-mcp", "--api-token", "YOUR_API_TOKEN"] } } } ``` ### Using with Other MCP Clients For other MCP clients that support the stdio transport: ```json { "mcpServers": { "fergus": { "command": "npx", "args": ["-y", "fergus-mcp", "--api-token", "YOUR_API_TOKEN"] } } } ``` ### Local Development 1. Clone this repository 2. Install dependencies: ```bash pnpm install ``` 3. Build the project: ```bash pnpm run build ``` 4. Run in development mode: ```bash pnpm run dev -- --api-token YOUR_API_TOKEN ``` ## Configuration ### Authentication You need a Personal Access Token (PAT) from Fergus to use this server. Get yours from your Fergus account settings. #### Option 1: Command-line argument (Recommended) ```bash npx fergus-mcp --api-token YOUR_API_TOKEN ``` #### Option 2: Environment variable Create a `.env` file: ```env FERGUS_API_TOKEN=your_fergus_api_token_here ``` ### Optional Configuration - `--base-url`: Override the default Fergus API base URL - `FERGUS_BASE_URL`: Environment variable for base URL ## Available Tools ### Jobs - `get-job`: Get details for a specific job by ID - `list-jobs`: List all jobs with optional filtering ### Resources - `fergus://jobs`: List of all jobs in Fergus - `fergus://customers`: List of all customers in Fergus *More tools and resources coming soon!* ## Usage Examples Once connected to Claude Desktop, you can ask: - "Show me all active jobs in Fergus" - "Get details for job #12345" - "List all customers" - "Create a new job for customer ABC Corp" ## Development ### Project Structure ``` fergus-mcp/ ā”œā”€ā”€ src/ │ ā”œā”€ā”€ index.ts # Main server entry point │ ā”œā”€ā”€ config.ts # Configuration management │ ā”œā”€ā”€ fergus-client.ts # Fergus API client wrapper │ ā”œā”€ā”€ resources/ # MCP resource handlers │ └── tools/ # MCP tool handlers ā”œā”€ā”€ package.json ā”œā”€ā”€ tsconfig.json └── README.md ``` ### Building ```bash pnpm run build ``` ### Running in Dev Mode ```bash pnpm run dev -- --api-token YOUR_API_TOKEN ``` ## Security - Never commit your Personal Access Token to version control - Use environment variables or CLI arguments for configuration - The server runs locally and communicates directly with the Fergus API - No data is stored or transmitted to third parties ## License MIT ## Contributing Contributions are welcome! Please open an issue or submit a pull request. ## Support For issues and questions: - GitHub Issues: [Create an issue](https://github.com/your-org/fergus-mcp/issues) - Fergus API Documentation: [https://api.fergus.com/docs](https://api.fergus.com/docs)

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/Jayco-Design/fergus-mcp'

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