@striderlabs/mcp-statefarm 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +208 -0
- package/dist/index.js +21903 -0
- package/package.json +43 -0
- package/server.json +20 -0
- package/src/index.ts +1286 -0
- package/tsconfig.json +14 -0
package/README.md
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
# @striderlabs/mcp-statefarm
|
|
2
|
+
|
|
3
|
+
> State Farm Insurance connector for personal AI agents — get quotes, manage policies, file claims, and more.
|
|
4
|
+
|
|
5
|
+
Built by [Strider Labs](https://striderlabs.ai) using the [Model Context Protocol](https://modelcontextprotocol.io).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- **Insurance Quotes** — Get auto, home, life, and renters quotes with estimated premiums
|
|
12
|
+
- **Policy Management** — Look up policy details, coverage, and renewal dates
|
|
13
|
+
- **Claims** — File new claims and check status on existing ones
|
|
14
|
+
- **Payments** — View balances, make payments, and manage autopay
|
|
15
|
+
- **Digital ID Cards** — Access and share your auto insurance ID card
|
|
16
|
+
- **Find Local Agents** — Locate State Farm agents near any address
|
|
17
|
+
- **Roadside Assistance** — Request towing, battery jumps, lockout help, and more
|
|
18
|
+
- **Bundle Recommendations** — Get personalized multi-policy bundle suggestions with savings estimates
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install -g @striderlabs/mcp-statefarm
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Or run directly with npx:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npx @striderlabs/mcp-statefarm
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## MCP Client Configuration
|
|
37
|
+
|
|
38
|
+
### Claude Desktop
|
|
39
|
+
|
|
40
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"mcpServers": {
|
|
45
|
+
"statefarm": {
|
|
46
|
+
"command": "npx",
|
|
47
|
+
"args": ["-y", "@striderlabs/mcp-statefarm"]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Generic MCP Client
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
"servers": {
|
|
58
|
+
"statefarm": {
|
|
59
|
+
"command": "npx",
|
|
60
|
+
"args": ["-y", "@striderlabs/mcp-statefarm"],
|
|
61
|
+
"transport": "stdio"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Available Tools
|
|
70
|
+
|
|
71
|
+
| Tool | Description |
|
|
72
|
+
|------|-------------|
|
|
73
|
+
| `statefarm_get_quote` | Get insurance quotes for auto, home, life, or renters |
|
|
74
|
+
| `statefarm_policy_details` | View policy coverage, deductibles, and renewal info |
|
|
75
|
+
| `statefarm_file_claim` | Initiate a new insurance claim |
|
|
76
|
+
| `statefarm_claim_status` | Check status on an existing claim |
|
|
77
|
+
| `statefarm_payment` | View balance, make payments, manage autopay |
|
|
78
|
+
| `statefarm_digital_id_card` | Get your auto insurance ID card |
|
|
79
|
+
| `statefarm_find_agent` | Find State Farm agents near a location |
|
|
80
|
+
| `statefarm_roadside_assistance` | Request or check roadside assistance |
|
|
81
|
+
| `statefarm_bundle_recommendations` | Get personalized bundle savings recommendations |
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Usage Examples
|
|
86
|
+
|
|
87
|
+
### Get an Auto Insurance Quote
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
Get me an auto insurance quote for a 2021 Toyota Camry in ZIP code 90210 for 2 drivers.
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
The agent will call `statefarm_get_quote` with:
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
"insurance_type": "auto",
|
|
97
|
+
"zip_code": "90210",
|
|
98
|
+
"vehicle_year": 2021,
|
|
99
|
+
"vehicle_make": "Toyota",
|
|
100
|
+
"vehicle_model": "Camry",
|
|
101
|
+
"drivers_count": 2
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### File a Claim
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
I was in a car accident today at 3pm at 123 Main St. My policy number is 123-4567-A01. Another driver was involved.
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
The agent will call `statefarm_file_claim` with the incident details and return a reference number plus step-by-step filing instructions.
|
|
112
|
+
|
|
113
|
+
### Get Bundle Recommendations
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
I own a home and a car in ZIP 60601. I have 3 kids and make about $120k/year. What should I bundle?
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The agent will call `statefarm_bundle_recommendations` and return prioritized bundle options with estimated savings.
|
|
120
|
+
|
|
121
|
+
### Request Roadside Assistance
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
My car battery died. I'm at 456 Oak Ave, Chicago. My callback number is 312-555-0100.
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
The agent will call `statefarm_roadside_assistance` with `action: "request_service"` and `service_type: "battery_jump"`.
|
|
128
|
+
|
|
129
|
+
### Find a Local Agent
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
Find me a Spanish-speaking State Farm agent near Dallas, TX.
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
The agent will call `statefarm_find_agent` with location and language filter, returning a link to the agent locator pre-filtered for your search.
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Tool Reference
|
|
140
|
+
|
|
141
|
+
### `statefarm_get_quote`
|
|
142
|
+
|
|
143
|
+
| Parameter | Type | Required | Description |
|
|
144
|
+
|-----------|------|----------|-------------|
|
|
145
|
+
| `insurance_type` | `"auto" \| "home" \| "life" \| "renters"` | ✅ | Type of insurance |
|
|
146
|
+
| `zip_code` | string | ✅ | Quote location |
|
|
147
|
+
| `vehicle_year` | number | Auto only | Model year |
|
|
148
|
+
| `vehicle_make` | string | Auto only | Manufacturer |
|
|
149
|
+
| `vehicle_model` | string | Auto only | Model name |
|
|
150
|
+
| `drivers_count` | number | Auto only | Number of drivers |
|
|
151
|
+
| `home_value` | number | Home only | Estimated home value (USD) |
|
|
152
|
+
| `home_year_built` | number | Home only | Year built |
|
|
153
|
+
| `home_sq_ft` | number | Home only | Square footage |
|
|
154
|
+
| `coverage_amount` | number | Life only | Desired coverage (USD) |
|
|
155
|
+
| `applicant_age` | number | Life only | Applicant age |
|
|
156
|
+
| `life_type` | `"term" \| "whole" \| "universal"` | Life only | Policy type |
|
|
157
|
+
| `personal_property_value` | number | Renters only | Belongings value (USD) |
|
|
158
|
+
|
|
159
|
+
### `statefarm_roadside_assistance`
|
|
160
|
+
|
|
161
|
+
| Action | Description |
|
|
162
|
+
|--------|-------------|
|
|
163
|
+
| `request_service` | Dispatch roadside help to your location |
|
|
164
|
+
| `check_coverage` | Verify if your policy includes roadside |
|
|
165
|
+
| `track_service` | Track a dispatched service provider |
|
|
166
|
+
|
|
167
|
+
Available service types: `towing`, `battery_jump`, `flat_tire`, `fuel_delivery`, `lockout`, `winching`
|
|
168
|
+
|
|
169
|
+
### `statefarm_payment`
|
|
170
|
+
|
|
171
|
+
| Action | Description |
|
|
172
|
+
|--------|-------------|
|
|
173
|
+
| `view_balance` | See current amount due |
|
|
174
|
+
| `payment_history` | View past payments |
|
|
175
|
+
| `make_payment` | Pay your bill |
|
|
176
|
+
| `setup_autopay` | Enable automatic payments |
|
|
177
|
+
| `cancel_autopay` | Disable automatic payments |
|
|
178
|
+
| `update_payment_method` | Change bank account or card |
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## Notes
|
|
183
|
+
|
|
184
|
+
- This connector provides guidance and structured information to help AI agents assist with State Farm insurance tasks
|
|
185
|
+
- Actions that require account access (payments, policy details) include direct links and instructions for completing them through State Farm's secure portal
|
|
186
|
+
- For emergencies, always call **1-800-STATE-FARM (1-800-782-8332)** or **911** directly
|
|
187
|
+
- Digital ID cards are legally accepted in all 50 US states
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Development
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
git clone https://github.com/striderlabs/mcp-statefarm
|
|
195
|
+
cd mcp-statefarm
|
|
196
|
+
npm install
|
|
197
|
+
npm run build
|
|
198
|
+
node dist/index.js
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Links
|
|
204
|
+
|
|
205
|
+
- [Strider Labs](https://striderlabs.ai)
|
|
206
|
+
- [Model Context Protocol](https://modelcontextprotocol.io)
|
|
207
|
+
- [State Farm](https://www.statefarm.com)
|
|
208
|
+
- [MCP TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk)
|