@chargetrip/mcp
Version:
Chargetrip MCP server
55 lines (40 loc) • 1.69 kB
Markdown
<div align="center">
<h1>Chargetrip MCP Server</h1>
<a href="https://chargetrip.com">Website</a>
<span>⚡️</span>
<a href="https://developers.chargetrip.com/">Docs</a>
<span>⚡</span>
<a href="https://developers.chargetrip.com/examples">Examples</a>
</div>
## Intro
Chargetrip MCP server is an MCP server to integrate Chargetrip GraphQL API into you AI agent.
https://github.com/user-attachments/assets/822370b0-a039-4c61-bb03-f4eb41dfe79f
## Getting started
### Github Copilot
You can use this directly in the [GitHub Copilot](https://docs.github.com/en/copilot/how-tos/provide-context/use-mcp/use-the-github-mcp-server) by adding an `mcp.json` file in the `.vscode` directory of the root directory:
```json
{
"servers": {
"chargetrip-mcp": {
"type": "stdio",
"command": "npx",
"args": ["@chargetrip/mcp"],
"env": {
"CLIENT_ID": "*** YOUR CLIENT ID HERE ***",
"APP_ID": "*** YOUR APP ID HERE ***"
}
}
},
"inputs": []
}
```
### Claude Code
You can use this directly in the [Claude Code](https://docs.anthropic.com/en/docs/claude-code/mcp), by running:
```bash
claude mcp add chargetrip --env CLIENT_ID=YOUR_CLIENT_ID --env APP_ID=YOUR_APP_ID -- npx -y @chargetrip/mcp
```
### Other AI agents
The package can be found in [npmjs.com](https://www.npmjs.com) at [https://www.npmjs.com/package/@chargetrip/mcp](https://www.npmjs.com/package/@chargetrip/mcp).
You will need to add two environment variables:
- **CLIENT_ID** with the client id from your workspace (usually sent under `x-client-id` header)
- **APP_ID** with the application id from your workspace (usually sent under `x-app-id` header)