API Keg — Spec Slice (OpenAPI & GraphQL Subgraph Extractor)
Extracts minimal OpenAPI and GraphQL subgraphs from specs, keeping only referenced schemas and types.
- CCM score
- 67 of 100
- tools
- 2
- transport
- HTTP
- last updated
- Nov 30, 2026
Own this MCP server? Claim it
What it does
- Slices OpenAPI 3.0/3.1 and Swagger 2.0 with
slice_openapi_spec, matching queries, operationIds, or path patterns, and returning a valid mini-spec - Prunes GraphQL SDL with
slice_graphql_schema, selecting root fields by query or explicit names and keeping their transitive type closure - Requires no signup for pay-per-request use over x402 with USDC on Base, or a monthly
BearerAPI key;dry_runchecks requests free - Designed for agents that need a smaller spec in context, such as narrowing a large API before generating code or calls
Install
$ npx -y add-mcp https://spec-slice.apikeg.com/mcp --name spec-slice -yAdds the server to every agent config it finds in this project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http spec-slice https://spec-slice.apikeg.com/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 2 toolsVerified live against the running server on Dec 1, 2026.
slice_openapi_specSelects OpenAPI/Swagger endpoints matching a natural-language query, operationIds, or pathPatterns, retains all transitively referenced component schemas, and returns a valid mini-spec plus optional curl and fetch examples. Pricing: $0.001 USD per OpenAPI/Swagger subgraph slic...8 params
Selects OpenAPI/Swagger endpoints matching a natural-language query, operationIds, or pathPatterns, retains all transitively referenced component schemas, and returns a valid mini-spec plus optional curl and fetch examples. Pricing: $0.001 USD per OpenAPI/Swagger subgraph slic...
compactDescriptionsbooleanincludeSnippetsbooleanmaxOperationsintegermethodsarrayoperationIdsarraypathPatternsarrayquerystringspec*valueslice_graphql_schemaParses GraphQL Schema Definition Language (`Query`, `Mutation`, `Subscription`, `type`, `input`, `interface`, `union`, `enum`, `scalar`), scores root fields against `query` or explicit `rootFields`, and emits a valid mini-SDL containing only selected root fields and the transi...6 params
Parses GraphQL Schema Definition Language (`Query`, `Mutation`, `Subscription`, `type`, `input`, `interface`, `union`, `enum`, `scalar`), scores root fields against `query` or explicit `rootFields`, and emits a valid mini-SDL containing only selected root fields and the transi...
compactDescriptionsbooleanmaxRootFieldsintegeroperationTypesarrayquerystringrootFieldsarraysdl*stringDetails
- Website
- spec-slice.apikeg.com/llms.txt
- Transport
- HTTP
- Registry
- MCP registry, active
- Resources
- 3
- Prompts
- 2
- Tools verified
- Dec 1, 2026
More from apikeg
All 12- API Keg — Trace Diet (HAR & Log Distiller)
- API Keg — Barcode, QR & Label Sheet Engine
- API Keg — CalendarICS RFC 5545 Invite Compiler
- API Keg — Context Crush (Transcript, Email & Workspace Compactor)
- API Keg — Document Redline & Table Diff
- API Keg — Domain & Email Deliverability Inspector
- API Keg — Executive SVG Chart & KPI Card Compiler
- API Keg — HookSink Ephemeral Webhook Receiver
- API Keg — MailPreflight Email QA & Deliverability
- API Keg — PDF Forge & Layout Diagnostics
- API Keg — Sheet SQL & Multi-Tab XLSX Engine