https://github.com/rijkvanzanten/directus-mcp-server
Model Context Protocol server for Directus
https://github.com/rijkvanzanten/directus-mcp-server
Last synced: 6 months ago
JSON representation
Model Context Protocol server for Directus
- Host: GitHub
- URL: https://github.com/rijkvanzanten/directus-mcp-server
- Owner: rijkvanzanten
- License: mit
- Created: 2025-03-31T23:01:51.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-03-31T23:04:54.000Z (6 months ago)
- Last Synced: 2025-04-01T00:20:18.834Z (6 months ago)
- Language: TypeScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
- awesome-mcp-servers - rijkvanzanten/directus-mcp-server
- awesome-mcp-servers - **directus-mcp-server** - Model Context Protocol server for Directus `api` `http` `ai` `ml` `git` `npm install rijkvanzanten/directus-mcp-server` (Other)
- awesome-mcp-servers - **directus-mcp-server** - Model Context Protocol server for Directus `api` `http` `ai` `ml` `git` `npm install rijkvanzanten/directus-mcp-server` (Other)
README
# Directus Model Context Protocol (MCP) Server
MCP server for use with Directus. Allows your AI tools to connect to and use your Directus API on
your behalf.This is an experiment by yours truly (@rijkvanzanten). Any and all PRs are more than welcome :)
## Installation
This MCP server is built to work with NodeJS v22.12 or newer.
### Global Installation (Recommended)
`npm install -g @rijk/directus-mcp-server`
Then configure Claude AI to use the `npm` package as remote server:
```json
{
"mcpServers": {
"directus": {
"command": "directus-mcp-server",
"env": {
"DIRECTUS_URL": "",
"DIRECTUS_TOKEN": ""
}
}
}
}
```### Local / Dev Installation
1. Clone the repo
2. `pnpm install && pnpm build` to build the server
3. Configure Claude AI like above, but pointing it to the `dist` file instead:```json
{
"mcpServers": {
"directus": {
"command": "node",
"args": ["/path/to/directus-mcp-server/dist/index.js"]
}
}
}
```## Tools
### Read Items
Read items from a collection. The MCP server will automatically generate one tool per collection. It currently accepts `fields`, `sort`, and `limit` as parameters
### Read Current User
Get information about the current user. Effectively the `/users/me` endpoint.
### Read Collections
Return what collections/fields are available in the system
## License
MIT