Skip to content

Commit d0d2a8f

Browse files
feat: add mcp server
1 parent 1b51e60 commit d0d2a8f

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,56 @@ npm install unstructured-client --include=dev
3131
```bash
3232
yarn add unstructured-client --dev
3333
```
34+
35+
### Model Context Protocol (MCP) Server
36+
37+
This SDK is also an installable MCP server where the various SDK methods are
38+
exposed as tools that can be invoked by AI applications.
39+
40+
> Node.js v20 or greater is required to run the MCP server.
41+
42+
<details>
43+
<summary>Claude installation steps</summary>
44+
45+
Add the following server definition to your `claude_desktop_config.json` file:
46+
47+
```json
48+
{
49+
"mcpServers": {
50+
"Unstructured": {
51+
"command": "npx",
52+
"args": [
53+
"-y", "--package", "unstructured-client",
54+
"--",
55+
"mcp", "start",
56+
]
57+
}
58+
}
59+
}
60+
```
61+
62+
</details>
63+
64+
<details>
65+
<summary>Cursor installation steps</summary>
66+
67+
Go to `Cursor Settings > Features > MCP Servers > Add new MCP server` and use the following settings:
68+
69+
- Name: Unstructured
70+
- Type: `command`
71+
- Command:
72+
```sh
73+
npx -y --package unstructured-client -- mcp start
74+
```
75+
76+
</details>
77+
78+
For a full list of server arguments, run:
79+
80+
```sh
81+
npx -y --package unstructured-client -- mcp start --help
82+
```
83+
3484
<!-- No SDK Installation -->
3585

3686
## SDK Example Usage

0 commit comments

Comments
 (0)