MCP from API
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP from APIfetch users from the API"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP from API
A configurable Model Context Protocol (MCP) server that exposes arbitrary HTTP APIs as MCP tools, driven entirely by a JSON config.
Instead of hardcoding tools, you define them in src/config/tools.config.json. Each entry describes:
Tool metadata:
name,description,inputSchemaHTTP call: method, path, optional query/body mapping, headers
Response shaping: how to turn the HTTP response into MCP
result.content
The worker runtime is still Cloudflare Workers using Wrangler.

Environment configuration
This repo is set up to keep local configuration out of git:
wrangler.jsoncis gitignored (may contain personal/internal URLs and IDs)src/config/tools.config.jsonis gitignored (may contain internal tool definitions / headers)
For open-source publishing, commit the example files and copy them locally when developing.
The server uses the baseUrlEnvKey from the tool config to look up the base URL in the Worker environment (see wrangler.jsonc).
In the default config:
baseUrlEnvKeyisAPI_BASE_URLwrangler.jsonctypically provides different values per environment (examples shown inwrangler.jsonc.example).
Optional shared token (authTokenEnvKey)
You can protect the MCP endpoints and pass a secret through to your upstream API:
In
tools.config.json, setauthTokenEnvKeyto the name of a Worker binding (same pattern asbaseUrlEnvKey). The example usesMCP_AUTH_TOKEN.In
wrangler.jsonc, define that variable (or use a secret for production). If the value is missing or blank, token auth is disabled: clients do not need a token, and upstream calls do not get an extratokenquery parameter.When the env value is non-empty, MCP clients must send the same string when connecting, either:
as a path segment:
/mcp/<token>or/sse/<token>, oras
Authorization: Bearer <token>.
If the client token matches the configured secret, every upstream tool request appends
token=<that secret>as a query parameter (in addition to anyquerymapping from the tool config). Your API can read that parameter to authorize the call.
Static per-tool headers (for example Authorization: Bearer ... for the upstream API) are set only in each tool’s http.headers block; they are not derived from the MCP client token.
Quick start (local)
Copy the example configs:
cp wrangler.jsonc.example wrangler.jsonc
cp src/config/tools.config.json.example src/config/tools.config.jsonThen edit wrangler.jsonc / src/config/tools.config.json with your own values.
Related MCP server: cod-api MCP Server
Defining tools in JSON
Tools are defined in src/config/tools.config.json under the tools array.
For a commit-safe reference, see src/config/tools.config.json.example.
Example:
{
"server": {
"name": "mcp-from-api",
"version": "1.0.0",
"description": "Configurable MCP server that exposes HTTP APIs as tools."
},
"baseUrlEnvKey": "API_BASE_URL",
"authTokenEnvKey": "MCP_AUTH_TOKEN",
"tools": [
{
"name": "example_get_users",
"description": "Fetches a paginated list of users from the configured API.",
"inputSchema": {
"type": "object",
"properties": {
"page": {
"type": "integer",
"minimum": 1,
"default": 1
}
},
"required": [],
"additionalProperties": false
},
"http": {
"method": "GET",
"path": "/users",
"query": {
"page": "page"
},
"headers": {}
},
"response": {
"mode": "json",
"contentPath": null,
"wrap": {
"type": "text",
"template": "Users response:\\n\\n{{body}}"
}
}
}
]
}HTTP mapping
In each tool’s http block:
method:"GET" | "POST" | "PUT" | "PATCH" | "DELETE"path: joined with the base URL from the environmentquery: map of query parameter name → argument key
(e.g."page": "page"meansargs.pagebecomes?page=...)headers: static headers to send on every call for that tool (from the config only).body(optional, for methods likePOST/PUT/PATCH):mode: "json"mapping:"full"– send the entireargumentsobject as JSON"properties"– send only selected properties, defined inproperties
properties(whenmappingis"properties"): map of body property → argument key
Response mapping
In each tool’s response block:
mode:"json"– parse the HTTP response body as JSON"text"– useresponse.text()
contentPath(optional):When
modeis"json", treat this as a dotted path into the parsed JSON (e.g."data.items").If omitted or not found, the entire JSON is used.
wrap(optional):Currently supports
type: "text"with atemplatestring.The placeholder
{{body}}is replaced with the stringified selected content.
The final string is always returned to MCP clients as:
{
"content": [
{
"type": "text",
"text": "..."
}
]
}Runtime behaviour
tools/listuses the JSON config to expose all tools with theirname,description, andinputSchema.tools/calllooks up the tool byname, constructs the HTTP request from the config and the providedarguments, calls the remote API, shapes the response, and returns it as MCP content./healthreflects the current config, returning:name,versionfromservertoolsas a list of tool namesendpointsfor/mcp,/sse, and/health
Development & deployment
The existing scripts still apply:
# Start development server
npm run dev
# Deploy to development environment
npm run deploy:dev
# Deploy to production environment
npm run deploy
# Test production configuration locally
npm run dev:prodTo add or change tools, edit src/config/tools.config.json and redeploy.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceA configurable MCP server that adapts any HTTP API into an MCP toolset with generic HTTP tools (GET, POST, PUT, DELETE) and pluggable authentication. Includes API discovery scripts and supports dynamic tool generation from OpenAPI specs or wordlist scans.Last updated

cod-api MCP Serverofficial
Flicense-qualityDmaintenanceExposes REST API endpoints defined in an OpenAPI Specification as MCP tools, allowing AI models to call them via the ModelContext Protocol.Last updated- Alicense-qualityDmaintenanceProvides a standardized MCP interface for interacting with HTTP tools and services, enabling unified API access and management.Last updatedMIT
- Flicense-qualityDmaintenanceExposes any REST API as MCP tools, enabling AI agents to discover and call existing HTTP endpoints without modifying the original API.Last updated
Related MCP Connectors
JSON tools MCP.
34 production API tools over one hosted MCP endpoint.
Connect any two APIs and keep them in sync — 45 MCP tools with shadow previews and diagnostics.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/abusedmedia/FFF-MCP-From-Api'
If you have feedback or need assistance with the MCP directory API, please join our Discord server