
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@mcp-consultant-tools/rest-api
Advanced tools
MCP server for REST API testing with OAuth2 client credentials support - test HTTP endpoints with automatic JWT token generation
MCP server for REST API testing with OAuth2 client credentials support. Enables AI assistants to test HTTP endpoints with automatic JWT token generation.
# As standalone
npx @mcp-consultant-tools/rest-api
# Or install globally
npm install -g @mcp-consultant-tools/rest-api
{
"mcpServers": {
"rest-api": {
"command": "npx",
"args": ["@mcp-consultant-tools/rest-api"],
"env": {
"REST_BASE_URL": "https://your-api.azurewebsites.net/api",
"OAUTH2_TOKEN_URL": "https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token",
"OAUTH2_CLIENT_ID": "your-client-id",
"OAUTH2_CLIENT_SECRET": "your-client-secret",
"OAUTH2_SCOPE": "api://your-app-id/.default"
}
}
}
}
| Tool | Description |
|---|---|
rest-request | Execute HTTP requests with automatic authentication |
rest-config | Get current service configuration summary |
rest-refresh-token | Force refresh OAuth2 token cache |
rest-batch-request | Execute multiple requests sequentially |
| Prompt | Description |
|---|---|
rest-api-guide | Comprehensive usage guide |
rest-api-troubleshoot | Troubleshooting common issues |
Best for Azure/Entra ID protected APIs like Data API Builder (DAB):
OAUTH2_TOKEN_URL=https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token
OAUTH2_CLIENT_ID=your-client-id
OAUTH2_CLIENT_SECRET=your-secret
OAUTH2_SCOPE=api://your-api/.default
AUTH_BEARER=your-pre-acquired-token
AUTH_BASIC_USERNAME=user
AUTH_BASIC_PASSWORD=pass
AUTH_APIKEY_HEADER_NAME=X-Api-Key
AUTH_APIKEY_VALUE=your-key
| Variable | Required | Default | Description |
|---|---|---|---|
REST_BASE_URL | Yes | - | Base URL for API requests |
REST_RESPONSE_SIZE_LIMIT | No | 10000 | Max response size in bytes |
REST_ENABLE_SSL_VERIFY | No | true | SSL certificate verification |
REST_TIMEOUT | No | 30000 | Request timeout in ms |
HEADER_* | No | - | Custom headers (e.g., HEADER_Accept) |
Use rest-request with method GET and endpoint /users
Use rest-request with method POST, endpoint /orders, and body {"item": "widget", "qty": 5}
Use rest-batch-request with an array of requests to test a complete workflow
MIT
FAQs
MCP server for REST API testing with OAuth2 client credentials support - test HTTP endpoints with automatic JWT token generation
We found that @mcp-consultant-tools/rest-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.